LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File Permissions (https://www.linuxquestions.org/questions/linux-newbie-8/file-permissions-221741/)

rshooper 08-24-2004 09:58 AM

File Permissions
 
Is there a way that I can have any new files created in a directory to have a specific owner, group and file permissions? I know that I can set the umask for specific users, but I am think More of having different settings per directory, regardless of the user who creates, if this is possible.

maxfacta 08-24-2004 10:37 AM

I don't believe there is an explicit way of doing so.
There is an implicit way of constraining the owner of a file, by setting the write permissions on the directory itself. If the directory has write permissions for owner only, then a file can only be created in that directory by that same user, and therefore will be owned by that owner. Similarly with groups (of course, root is not constrained in this fashion).
Maybe not very helpful for your desire, but it is the basic unix file system security. KISS!!


All times are GMT -5. The time now is 09:47 AM.