How to set the future permissions of content in folder
1
vote
2
answers
3467
views
Let's say I am the user Alice and I have a publicly accessible folder
/samba/public
The permissions of the public Samba folder (/samba/public/
) are nobody:nogroup and 0777.
When Alice tries to copy over something from her home folder to the shared public drive
(e.g cp ~/Downloads/* /samba/public
),
Alice wants the newly copied files to be editable/deletable by all guests who have access to the public Samba share.
I want the copied files to be owned by nobody:nogroup and set to 0777.
Instead, what happens is that the newly copied files are owned by alice:alice and guest users on the public drive can't edit or delete the files.
How can I ensure that future copy/move operations of content from Alice's home folder to the shared/public Samba folder will be owned by nobody:nogroup so that guest users aren't then prevented from deleting/editing the files themselves?
Asked by chivano
(113 rep)
Jul 5, 2018, 08:23 PM
Last activity: Jul 5, 2025, 05:04 AM
Last activity: Jul 5, 2025, 05:04 AM