Find the answer to your Linux question:
Results 1 to 5 of 5
Hi all, I have a File Server running Fedora 6. Could I ask you some questions about File permission: - How to set permission to the child folders & files ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    13

    File permission on Linux

    Hi all,

    I have a File Server running Fedora 6. Could I ask you some questions about File permission:

    - How to set permission to the child folders & files the same as the father folder.
    - How to set new created folders & files automatically inherit permission from their father folder.

    Thanks a lot!

  2. #2
    Just Joined!
    Join Date
    Apr 2008
    Posts
    1

    Cool Changing file permissions

    Something like

    chmod 660 /path/to/files/* -R
    chown username:groupname /path/to/files/* -R

    should get you going. The -R means recursive sub directories.

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Posts
    13

    Permission inheritance

    Thanks fr0thy,

    how do I set new files or folders automatically inherit permissions from their father folder?

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by ndqccxx View Post
    Thanks fr0thy,

    how do I set new files or folders automatically inherit permissions from their father folder?
    There's no way to do this, but you can read on umask (man umask) to know how to stablish permissions mask on a given session (or forever by setting them into your ~/.bashrc and ~/.bash_profile

  5. #5
    Just Joined!
    Join Date
    Apr 2008
    Posts
    13
    Thanks i92guboj!

Posting Permissions

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