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

find . -type d -user myusername -exec chmod 771 {} \;
find . -type f -user myusername -name '*.php' -exec chmod 660 {} \;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.