Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Oct 07, 2013 8:38 pm 
Offline
Senior Member
User avatar

Joined: Wed Jun 26, 2013 1:53 am
Posts: 118
I tried setting group ownership to sudo, but that still requires the sudo command to edit them. Filezilla also won't display them. I'm looking to add all files under the web server directory as owned by all the administrators and easily editable to all of them.

_________________
Homepage www.sturmkrieg.com
Social network Gamernet
Development website Sashaweb Development
Imageboard img.sturmkrieg.com
WikiHub free wiki host Community Wiki


Top
   
PostPosted: Mon Oct 07, 2013 8:41 pm 
Offline
Senior Member
User avatar

Joined: Thu Feb 16, 2012 9:01 pm
Posts: 52
use groups and group rwx on files to satisfy your needs.

Ensure the default umask is correct.

The default group of users should be the shared group. chmod g+s on directories may help.


Top
   
PostPosted: Mon Oct 07, 2013 8:49 pm 
Offline
Senior Member
User avatar

Joined: Thu Feb 16, 2012 9:01 pm
Posts: 52
to clarify - don't use sudo. Use a different group specifically for this purpose.


Top
   
PostPosted: Mon Oct 07, 2013 11:43 pm 
Offline
Senior Member
User avatar

Joined: Wed Jun 26, 2013 1:53 am
Posts: 118
Ok, so using sudo requires users to still need to use the sudo command to modify the files? Using another group, such as "administrators" will allow multiple users to access the files normally?

_________________
Homepage www.sturmkrieg.com
Social network Gamernet
Development website Sashaweb Development
Imageboard img.sturmkrieg.com
WikiHub free wiki host Community Wiki


Top
   
PostPosted: Tue Oct 08, 2013 1:13 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Yes. Take the following file as an example:
Code:
-rw-rw-r-- 1 someuser somegroup  81743 Oct  8 00:45 index.html


The file was probably created by "someuser", who is the owner and is able to read and write the file. Any members of "somegroup" can also read and write the file. All other accounts on the system (including the one that your web server runs under) are able to read the file.

If you want "anotheruser" to also be able to modify the file, you can add that account to the "somegroup" group with the usermod -a -G somegroup anotheruser command.

If you use the setgid bit on a directory, all files created in that directory will inherit the same group. This is handy as you then don't have to manually set the group on new files to "somegroup" all the time.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group