Find the answer to your Linux question:
Results 1 to 5 of 5
Hi everybody. I set the permission for one folder this way. "chmod -R a=rwx myfolder" and now I would like that every file or folder that is created in "myfolder" ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Slovenia
    Posts
    162

    How to set default permissions?

    Hi everybody. I set the permission for one folder this way. "chmod -R a=rwx myfolder" and now I would like that every file or folder that is created in "myfolder" automaticly inherits permissions from "myfolder". Is it possible to do that? I am using suse 10.2. Thanx for help.

  2. #2
    Just Joined!
    Join Date
    May 2007
    Location
    Poland
    Posts
    5
    As far as I know, any file created will be owned by the user who created it and be accessible for all users from his group for reading. I do not know of any way of changing this default, which of course does not mean there are no such ways

  3. #3
    Linux Newbie
    Join Date
    Mar 2007
    Posts
    243
    If you want to grant all permissions to any file:

    chmod 777 <filename>

  4. #4
    Linux Newbie the bassinvader's Avatar
    Join Date
    Jun 2006
    Location
    Europe
    Posts
    168
    You need to look up umask. Each user can set default permissions for thenselves.
    " I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."

  5. #5
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Slovenia
    Posts
    162
    I gues umask will be the right command.Thanx guys.

Posting Permissions

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