[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Restricting a shell user to his home dir ?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 5 Aug 2004 debi@niit.edu.pk wrote:

> Hi,
>
> I am learning a lot from this mailing list :). I have few shell users, i want to restrict their shell login to their home directories.
>
> Like they should not be able to move around in the system and see other user's home directories.
>
> Any suggestions would be usefull.
>
> Regards
> Azher
>
I hope this might do the work.
# chmod o-r /home
#

If you want this by default, you'll have to set umask.
Also have a look at /etc/adduser.conf file

HTH

- -- 
Ritesh Raj Sarraf
RESEARCHUT -- http://www.researchut.com
Linux-Nepal -- http://groups.yahoo.com/group/linux-nepal
Gnupg Key ID: 0x04F130BC
"Stealing logic from one person is plagiarism, stealing from many is research".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFBEdYO4Rhi6gTxMLwRAtxUAJ934b3ur92tQhFJ03+wdgfPKFiQsQCgo5Wq
9Z0xgnMAsFpUkX4d4JUaOPk=
=WYWt
-----END PGP SIGNATURE-----



Reply to: