The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-21-2008
itobenon itobenon is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 5
Angry how do U restrict a user to a single directory?

specifically - I don't need to restrict a user to a single directory - but I want them to be "ROOTED" to their home directory.

so if my home directory is /home/onlyme

when I login - if I do a pwd - I want to see:
/

but in real life I will be in /home/onlyme - it just appears as root to me.

I don't care if I can make dir's under this... I just don't want users to even SEE what's above their home dir...

i think there used to be a way in sysV unix to do this in the passwd file... but I don't remember how.

chroot is NOT a solution - it confines the user to a jail - but they have full [visual] access to the jail.

FWIW - I'm using debian linux.
TIA