[ILUG-BOM] Inherit Ownership and Permissions

Anurag gnurag at gmail.com
Thu Jul 13 19:15:29 IST 2017


On Wed, Jul 12, 2017 at 10:26 PM, Rony Bill <gnulinuxist at gmail.com> wrote:

> 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.
>

Linux won't allow a non-root user to change file ownerships, as this could
expose you to security/quota holes. In this case, its the process owner
creating those files that counts and not the directory permissions.

I concur with Pritam.

Anurag


More information about the Linuxers mailing list