Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jul 03, 2013 11:51 pm 
Offline
Senior Member
User avatar

Joined: Wed Jun 26, 2013 1:53 am
Posts: 118
What is the best command/setting for this? I don't want files to be accessible by other users who aren't admins, but I believe this might be done through SFTP jails.

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


Top
   
PostPosted: Wed Jul 03, 2013 11:58 pm 
Offline
Junior Member

Joined: Wed Mar 28, 2012 4:29 pm
Posts: 38
chown root:<web-group> <directory>
chmod 0770 <directory>

Enjoy your jail.


Top
   
PostPosted: Sun Jul 07, 2013 8:01 pm 
Offline
Senior Member
User avatar

Joined: Wed Jun 26, 2013 1:53 am
Posts: 118
gparent wrote:
chown root:<web-group> <directory>
chmod 0770 <directory>

Enjoy your jail.


So it would be

Code:
chown root:sudo /home/sasha/web_servers
chmod 0770 /home/sasha/web_servers


What do each of the numbers for the chmod do? I'm only used to three numbers.

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


Top
   
PostPosted: Mon Jul 08, 2013 2:25 am 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
Normally the first 0 in that chmod is ignored, unless you give it explicitly like that.
This is the special mode, you can give it a 4 for setuid(e.g chmod 4770), a 2 for setgid, or a 1 for a sticky bit. They can be combined (e.g. setgid + sticky bit would be 3770)

As a sidenote I personally use 0710 with user:www-data on the folders.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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