Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 2235 | Replies: 1
![]() |
•
•
Join Date: Oct 2004
Location: San Francisco, CA
Posts: 338
Reputation:
Rep Power: 5
Solved Threads: 2
What I want to know is there a way that everyime a new folder or file is created it has an automatic permission settings of my choosings? I could have sworn there was a command I could add to the .cshrc file to do this for me. But if I add it there will it work on ftp or just ssh?
whenever a file is created I want it to have 660 permissions
whenever a directory is created I want it to have 771 permissions
currently after I add files/dir I run the following command
whenever a file is created I want it to have 660 permissions
whenever a directory is created I want it to have 771 permissions
currently after I add files/dir I run the following command
find . -type d -user myusername -exec chmod 771 {} \;
find . -type f -user myusername -name '*.php' -exec chmod 660 {} \; Look into the umask settings...
Do the command:
See Also: http://linuxzoo.net/page/sec_umask.html
Do the command:
man umask
See Also: http://linuxzoo.net/page/sec_umask.html
My Home Away from Home: Yet Another Linux Blog
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode