The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Evangelist: Mozilla has "historic opportunity" to advocate for users iBot UNIX and Linux RSS News 0 02-25-2008 01:30 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 09:52 PM
Can you limit the compare on "comm" command eja UNIX for Dummies Questions & Answers 0 03-23-2007 08:48 AM
Want to create new users without using "useradd" command and user Interaction. syedifti UNIX for Dummies Questions & Answers 2 10-09-2001 02:26 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-26-2006
Registered User
 

Join Date: May 2006
Posts: 1
Limit "exploring" from users/groups

I have a unix box which runs as a webserver and ftp server. I have a user account for a friend and while I trust him, I noticed that he can view directories above his own "web" folder which is his default directory.

I'm still trying to understand users/groups and privileges so bear with me if this is merely a matter of changing his group permission settings. He is in his own group called "web" so he's not confused into the local users group. Can I restrict this group to only view his "web" directory and lower?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-26-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,883
consider chroot

man chroot will give you the syntax.
Reply With Quote
  #3 (permalink)  
Old 05-28-2006
Registered User
 

Join Date: Mar 2006
Posts: 106
Here...

Good question...
in UNIX the system privileges work this way:
1. first system checks if the owner has the rights, if he/she does no other verifications will be performed.
2. then it checks the primary group that user belongs to if the right is granted no other verifications will be made
3. the same with other groups he/she belong till "others" or "world permissions will be hit.

there is chmod command that allows you to control permissions. For directories there is a "sticky" bit that means prohibition to delete files belong to other.

It is kind of big subject. Get "UNIX Essentials and UNIX Core" DVD it explains all this stuff.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0