Results 1 to 5 of 5

Thread: How do I apply user permissions to not just folders but also all files

  1. #1
    Join Date
    Nov 2008
    Beans
    338
    Distro
    Ubuntu

    How do I apply user permissions to not just folders but also all files

    Hi,
    I want to add my daughter as a user and give her full permissions to all the same folders and files that I use.
    I have given her permission to folders and their sub folders however she doesn't have rwx on the individual files within the folders.
    What is the command line to set this up?

    Also with the command;
    Code:
    chown -R root:root files
    what is the -R for and when do I need or not need it?

    Any help appreciated

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: How do I apply user permissions to not just folders but also all files

    The -R means recursive, which will apply the permissions to all subfolders and files within them.

    So the -R flag is what you need.

  3. #3
    Join Date
    Nov 2008
    Beans
    338
    Distro
    Ubuntu

    Re: How do I apply user permissions to not just folders but also all files

    Thanks,
    I did use -R however when I switch users and go into say the mp3 folder she does not have rwx on the individual files.

  4. #4
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: How do I apply user permissions to not just folders but also all files

    What you need to do is make a group. Put yourself and your daughter as members of that group, then

    chown -R you:new_group mp3folder

    chmod -R 775 mp3folder

  5. #5
    Join Date
    Nov 2008
    Beans
    338
    Distro
    Ubuntu

    Re: How do I apply user permissions to not just folders but also all files

    Thanks again,
    Have to go to work, I'll try later and post a reply.

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
  •