Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Hello everyone I am very new to linux and recently installed Scientific Linux on an old machine. I created a user called Shahin and everything was fine on the gnome ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Cue
    Cue is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    23

    Gnome Desktop (two home folders two Trashcans)


    Hello everyone

    I am very new to linux and recently installed Scientific Linux on an old machine.
    I created a user called Shahin and everything was fine on the gnome desktop, I had a Home folder, Trash, Computer etc. after experimenting with linux for a while (SSH, remote desktop, X forwarding) I logged back on to the gnome desktop on the local machine and

    I hade two folders

    ''Shahin's home'' and ''home''. ''Shahin's home'' opened /home/Shahin but it did not give me write premission for some folders which I previously had premmision for. ''home'' gave an error ''Couldn't find "/$HOME".''

    even though HOME=/home/Shahin was set

    there were also two trashcans one which had an icon with paper in (but was empty) and one which was empty (which I think was the real trash can since it had the 'empty trash' option when right clicked)

    What is the likely cause of this and how can I avoid it in the future?

    Thanks

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Execute this
    Code:
    ls -l /home
    Post output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Cue
    Cue is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    23
    Hi devils_casper

    I am at uni right now so I had to do it through ssh ( dont think it matters but I dont know much). here is the output

    Code:
    total 8
    drwx------ 28 Shahin users 4096 Jan  1 21:23 Shahin
    edit: I'll try it on the local machine when I get home.

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Permissions of /home/Shahin folder have been changed but it should allow user Shahin to create/edit files.
    Try re-setting permissions.
    Code:
    chmod -R 755 /home/Shahin
    chown -R Shahin:users /home/Shahin
    Check if user Shahin has all permissions in /home/Shahin folder.
    Execute this
    Code:
    ls -l /home/Shahin
    Post output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Cue
    Cue is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    23
    changed permissions

    Code:
    total 4988
    drwxr-xr-x 2 Shahin users    4096 Dec 14 02:07 3DDesktop
    drwxr-xr-x 3 Shahin users    4096 Oct 18 23:15 CLHEP-2.0.3.2
    -rwxr-xr-x 1 Shahin users 5048972 Oct 19 15:53 clhep-2.0.3.2-src.tgz
    drwxr-xr-x 2 Shahin users    4096 Jan  1 12:19 Desktop
    drwxr-xr-x 2 Shahin users    4096 Dec 14 02:06 Drivers
    drwxr-xr-x 3 Shahin users    4096 Dec 19 01:12 geant4
    premissions are fine now but I am curious as to why this happened. Also should I now just delete the extra thrash can and 'home' folder on the desktop.

  7. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    I dont know how did you change those permissions. Did you execute chmod command earlier too?
    Also should I now just delete the extra thrash can and 'home' folder on the desktop.
    I am not sure about it. ls -l is not listing extra Trash and home folders. Are those folders located at Desktop?
    Execute this
    Code:
    ls -a /home/Shahin/Desktop
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #7
    Cue
    Cue is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    23
    yes they are located on the desktop. I deleted the extra trash can but I think the extra 'home' is still there.

    here is the output

    Code:
    .  ..  .directory  Home.desktop  System.desktop
    I think it has something to do with KDE since I think they appear after starting a KDE session then switching to gnome.

  9. #8
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    I think the trash folders are located in /home/username but are linked to on the desktop for Gnome. Try:
    Code:
    ls -a /home/Shahin
    My guess is that you have two different users' trash on your desktop or you just have two desktop icons pointing to the same trash. Either way, you should be able to remove one easily.

  10. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Its not listing any Trash folder and Home folder is a link of your Home ( /home/Shahin ) only. Either keep it as it is or delete it. Nothing will go wrong.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  11. #10
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Well, the trash folder is hidden in home so it wouldn't be shown in any of the commands that he has run so far.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •