I want to create a directory where any user can create a file, but after creating the file the user and group ownership for that file are set to predefined values. I know there is a way to do this with GUID, UID but I'm always forgetting the chmod combo.
|
feedback
|
|
You can do this for GID:
You cannot do this for UID. Directly. You could write a cron entry that every so often runs the commands:
(make sure you mount the filesystem that /path/to/directory is on nosuid to avoid a race condition where someone drops a setuid shell into the directory) | |||||
feedback
|
|
I'm sorry to say that, but RTFM please. From
| |||
|
feedback
|