> Assume:
>
> alfa is a box with directories thus:
>
> drwxrwxr-x somedirs root web
>
> obviously owned by root, with a group of web.
>
> bravo is a box which has these directories mounted either via smb or
> nfs.
>
> joe is a user on bravo who copies files to these directories on alfa.
> joe is a member of groups joe and web.
>
> Now, when joe copies the files, they show up as belonging to user joe
> and group joe. Other than adding a chown step at the end of copying, is
> there any other way to make files that joe copies to these directories
> belong to joe or root, with a group of web? This last is the important
> part.
>
> Paul
If you use cp -p , it will preserve permissions, ownership, and timestamps. Alternatively, you can specify cp --preserve=ownership to just keep the ownership attributes.
Levi
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:16:50 EDT