Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Changed home directory permissions and now I can't login.

  1. #1
    Join Date
    Jul 2013
    Beans
    9

    Unhappy Changed home directory permissions and now I can't login.

    Hello,
    I was trying to keep one user from viewing my home directory so I changed the advanced permissions in Dolphin so that the user couldn't read or write. Then later when I logged in the screen just went black and went back to the login screen. I have Kubuntu 13.04. I have tried all kinds of chmod commands.

  2. #2
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Changed home directory permissions and now I can't login.

    You may find this tutorial helpful for rescuing the situation:

    http://ubuntuforums.org/showthread.php?t=976610

    Since you can't log in to a GUI, you would need to press ctrl-alt-F1 at the login screen to get to a virtual terminal from where you can run all the commands.

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  3. #3
    Join Date
    Jul 2013
    Beans
    9

    Re: Changed home directory permissions and now I can't login.

    Unfortunately, that didn't work. But when I tried to access .dmrc in nano I noticed it said
    Code:
    [ Error reading /home/devon/.dmrc: Permission denied ]
    then I ran the first two commands again and it let me look at it, so I rebooted and it says "Permission denied" again!

  4. #4
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Changed home directory permissions and now I can't login.

    If you ran the commands for correcting ownership and permissions on .dmrc from that tutorial correctly you would not get a permission denied error.

    From the virtual console, run:

    Code:
    ls -l /home/devon/.dmrc
    And look at section 5 of that tutorial again. You may have missed something.

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  5. #5
    Join Date
    Jul 2013
    Beans
    9

    Re: Changed home directory permissions and now I can't login.

    This is the output of ls -l:
    Code:
    ----rw----+ 1 devon devon 29 Aug 23 16:18 /home/devon/.dmrc
    I ran those commands a few more times, but I noticed in my other user when I go to /home/devon and look at .dmrc's properties it says
    Code:
    Owner: Forbidden
    Group: Can Read & Write
    Others: Forbidden
    but when I run those commands it says
    Code:
    Owner: Can Read & Write
    Group: Can Read
    Others: Can Read
    , then when I try to log in all the permissions go back. This is the output of ls -l after I run the commands.
    Code:
    -rw-r--r--+ 1 devon devon 29 Aug 23 16:27 /home/devon/.dmrc

  6. #6
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Changed home directory permissions and now I can't login.

    Quote Originally Posted by devongarber1 View Post
    This is the output of ls -l:
    Code:
    ----rw----+ 1 devon devon 29 Aug 23 16:18 /home/devon/.dmrc
    That is 060 permissions which is unusable. The only way I know to get that would have been to run:

    Code:
    chmod 060 /home/devon/.dmrc
    Which is not in that tutorial at all. I wonder if 060 was a typo for 600. Check and double-check any terminal command before you run it.

    Quote Originally Posted by devongarber1 View Post
    I ran those commands a few more times, but I noticed in my other user when I go to /home/devon and look at .dmrc's properties it says
    Code:
    Owner: Forbidden
    Group: Can Read & Write
    Others: Forbidden
    but when I run those commands it says
    Code:
    Owner: Can Read & Write
    Group: Can Read
    Others: Can Read
    ,
    Why are you running commands from your "other" user? This only complicates things, and shouldn't work anyway. That is why I suggested to run commands from a virtual terminal. Again: press Ctrl-Alt-F1 from the login screen to open a virtual terminal, log in as devon and then run the commands. Do not run any of these commands from your other user.

    Quote Originally Posted by devongarber1 View Post
    then when I try to log in all the permissions go back. This is the output of ls -l after I run the commands.
    Code:
    -rw-r--r--+ 1 devon devon 29 Aug 23 16:27 /home/devon/.dmrc
    What with the above, I can't follow what is going on. That last set of permissions is 644, which is exactly what .dmrc should be.

    Boot up, at the GUI log in screen go to tty1 with Ctrl-Alt-F1, log in as devon and follow the tutorial again, section 5. Do not log in as your other user. Now press Ctrl-Alt-F7 to get you to tty7. Log in as devon. Check that everything is working as it should be. Reboot and see if you can log in as devon again. Only then consider what you need to be doing to prevent another account from seeing your devon files, but I think that might need a separate thread.

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  7. #7
    Join Date
    Dec 2009
    Beans
    5,376

    Re: Changed home directory permissions and now I can't login.

    @coffeecat,

    Don't mean to interrupt but we still don't know what the permissions are on /home/devon/.dmrc
    Quote Originally Posted by devongarber1 View Post
    This is the output of ls -l:
    Code:
    ----rw----+ 1 devon devon 29 Aug 23 16:18 /home/devon/.dmrc
    That little "+" at the end of the permissions indicates that when he went into advanced permissions in Dolphin he activated an Access Control List for that object. An "ls -l" won't tell you the real permissions. You need to run something like this:
    Code:
    getfacl -t /home/devon/.dmrc
    I try to stay away from ACL's because they are too complicated for my little brain but I remember the "+" indicating that it is in control of permissions.

  8. #8
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Changed home directory permissions and now I can't login.

    Quote Originally Posted by Morbius1 View Post
    Don't mean to interrupt but we still don't know what the permissions are on /home/devon/.dmrc

    That little "+" at the end of the permissions indicates that when he went into advanced permissions in Dolphin he activated an Access Control List for that object. An "ls -l" won't tell you the real permissions. You need to run something like this:
    Code:
    getfacl -t /home/devon/.dmrc
    I try to stay away from ACL's because they are too complicated for my little brain but I remember the "+" indicating that it is in control of permissions.
    @Morbius1, interrupt away! I'm sure I missed something, because I'm not particularly familiar with Dolphin's features. Thanks for the input!

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  9. #9
    Join Date
    Jul 2013
    Beans
    9

    Re: Changed home directory permissions and now I can't login.

    Sorry, I should have been more clear. I can't really run those commands in my other user as it is not a sudoer. I was just reading this thread from it and viewing the permissions of .dmrc in Dolphin. I tried running the commands again but still with the same outcome. This is the output of getfacl:
    Code:
    getfacl: Removing leading '/' from absolute path names
    # file: home/devon/.dmrc
    USER     devon    ---
    user      apache   ---
    GROUP   devon    ---
    mask                 rw-
    other                 ---
    apache is my other user.

  10. #10
    Join Date
    Nov 2008
    Location
    Kingdom of cookies
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Changed home directory permissions and now I can't login.

    Quote Originally Posted by devongarber1 View Post
    Sorry, I should have been more clear. I can't really run those commands in my other user as it is not a sudoer. I was just reading this thread from it and viewing the permissions of .dmrc in Dolphin. I tried running the commands again but still with the same outcome. This is the output of getfacl:
    Code:
    getfacl: Removing leading '/' from absolute path names
    # file: home/devon/.dmrc
    USER     devon    ---
    user      apache   ---
    GROUP   devon    ---
    mask                 rw-
    other                 ---
    apache is my other user.
    try
    Code:
    sudo setfacl -x u:devon /home/devon/.dmrc
    sudo setfacl -x u:apache /home/devon/.dmrc
    sudo setfacl -x g:devon /home/devon/.dmrc
    if you cant login to a user with sudo privileges, choose "recovery mode" during computer startup (may have to press a key to make the grub menu show), and run it there
    Last edited by sandyd; August 24th, 2013 at 06:27 PM.
    Ubuntu Forums Moderation Staff || SandyDNET
    Twitter: @CatchesAStar | Last.fm
    Ubuntu Membership via Forum Contributions

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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