default file permissions in a folder
Is there a way to set default file permissions in a folder?
Basically this is what I have:
a shared folder /home/me/shared
this folder is shared between NFS and Samba
now this folder i would use "chmod -R a=rwx /home/me/shared"
but when i create or copy files to this folder from the host, the permissions are
-rw-r--r-- me me
and when i do this from another location, the permissions are
-rwxr--r-- nobody nogroup
I want all the files and folders created or copied to this folder to automatically inherit the -rwxrwxrwx
And what effect does the nobody and nogroup have on the files?
|