[ILUG-BOM] Inherit Ownership and Permissions

Rony Bill gnulinuxist at gmail.com
Wed Jul 12 22:26:18 IST 2017


Dear Friends,

In Linux is there a way in which new files or folders created in a
directory will inherit the directory's owner and group with the same
permissions too? The new files or folders are currently getting created
with the user and group of the user who created them. I want all the new
data to have user:group and permissions of the parent directory.

I have tried different things like suid sgid sticky bit and even mounting
the folder with a certain uid, gid and umask but new data does not inherit
the same.

Thanks and Regards,

Rony.


More information about the Linuxers mailing list