Results 1 to 6 of 6

Thread: can't change permissions for home folder

  1. #1
    Join Date
    Oct 2017
    Beans
    4

    can't change permissions for home folder

    Hey friends!
    How to I change the permission for my home folder back to read & write? Some how it got changed to read only.

  2. #2
    Join Date
    Jun 2014
    Beans
    7,383

    Re: can't change permissions for home folder

    How did you determine this was the case? Did you simply to try to create a file in your /home directory or create a file there and fail or did you get a message indicating it had been changed to read-only. If it is the 2nd option, you may need to do a filesystem check.

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: can't change permissions for home folder

    Probably used a GUI file manager with root. Not knowing how some permissions were changed is scary. They don't magically change on their own. Someone, probably with root access had to do something.

    Unfortunately, if the OP is so new as to need to ask the question, it is likely that other basic knowledge is needed to fill in gaps before the solution can be correctly handled. It is also unlikely that the top-level of HOME was modified, but some subdirectories, so there really isn't a single answer to the question.

    http://linuxcommand.org/tlcl.php - start by reading and working through the first 250 pages to get passed beginner level. This teaches Unix/Linux in the correct order, because skills build on prior skills. Learning in order is important.

    In order to provide correct help, and ensure I don't do more harm than good, I'd want to see the file and directory permissions for the problem files and directories. ls -al filename A path to the file might be needed, as well as the permissions for the directory where the file resides.

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: can't change permissions for home folder

    Code:
    cd /home
    sudo chown username:username username -R
    sudo chmod u+rwx username -R
    That will restore ownership to user "username" on all files and directories in /home/username and grant that user full privileges on all those files and directories.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: can't change permissions for home folder

    Code:
    sudo chown -R    $LOGNAME:$LOGNAME     $HOME 
    sudo chmod -R    u+rwX      $HOME
    should be a little safer. There could be problems it won't fix and it might break a few things. Hard to tell. It won't fix the group or "other" level permissions.

    For what each command does, there is a manpage. man chown ; man chmod to view them.

  6. #6
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: can't change permissions for home folder

    I usually assume the user knows his or her username and doesn't need something like $LOGNAME. Maybe I'm being unreasonably optimistic.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

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
  •