multi-user guidelines for shared folders
Ralf Mardorf
silver.bullet at zoho.com
Thu Oct 27 02:53:41 UTC 2016
Hi,
is there a guidelines how to name directories and files in shared folders,
e.g. in /tmp on multi-user systems? And apart from the names, how
should permissions be handled?
User? PID? Random number?
$ user_related_unique_file_name_extension=-$USER-$$-$(mcookie)
$ mkdir /tmp/foo$user_related_unique_file_name_extension
$ chmod go-rwx /tmp/foo$user_related_unique_file_name_extension
$ chmod u+rwx /tmp/foo$user_related_unique_file_name_extension
$ ls -ld /tmp/foo$user_related_unique_file_name_extension
drwx------ 2 weremouse weremouse 4096 Oct 27 04:44 /tmp/foo-weremouse-23448-9daceca1d05461fefb2f5c5503711bce
Regards,
Ralf
More information about the ubuntu-users
mailing list