Thread: Setting Default File Permissions
i have file server running cronjob reset file permissions on regular basis. thinking, wonder if there way chmod , chown command in single command, have both on same folder, way can "chown root:users uploads" instead of having 2 separate commands chown , chgrp.
got thinking, these commands necessary? every file copied or moved these folders user needs "chmod 750" , "chgrp root:users", rather running cronjob these modifications @ regular intervals, there ought way set folder permissions files contained within have these permissions.
problem arises because users create documents, supervisor elevated privileges can move documents shared folder, permissions wrong, user1:user1 owner , group , other users can't read file until cronjob changes group users. has been acceptable, there better way this. know? tia
the "chgrp root:users" part can done setgid:
"2" force new files / subfolders saved folder "inherit" group "users".code:sudo chmod 2770 root:users /path/to/shared/folder
edit: command above makes no sense. please see correction below.
can change "chmod 3770" want same thing above want root , original owner able delete it.
this:
don't know of other thatn chmod force linux set file executable default. if wanted 640 require change umask parameter in /etc/profile 026 apply every new file everywhere on system. maybe else has solution one.every file copied or moved these folders user needs "chmod 750"
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Setting Default File Permissions
Ubuntu
Comments
Post a Comment