Skip to main content

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:

code:
sudo chmod 2770 root:users /path/to/shared/folder
"2" force new files / subfolders saved folder "inherit" group "users".
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:
every file copied or moved these folders user needs "chmod 750"
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.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Setting Default File Permissions


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support