Jailing an user
hi,
I would like to know if there is a way (well, there certainly is) to lock a particular user (or all users) in their home directory. This is exactly what i m looking for - There is a centrally located Linux (RedHat 9.0) server to which users login to their shell accounts. Now what i want to do is to restrict the users to their home directory so that they cant move out of their home directory - in other words chroot $HOME - but that is only possible as r00t. i tried adding "chroot $HOME" line in /etc/bashrc but that can be executed only as root. So is there a way that whenever someone logs in - he cant move out of his home directory ----- both for FTP and shell... Thanks |
There are several ways, the easiest is to give them a restricted shell
bash -r or rbash (same) |
with bash -r or "rbash" i cant even move down a directory....????
this is not what i want....i want the users to restrict to move up a directory |
Oops sorry, I misread what you were looking for. rbash is very restrictive. User can't change system variables or anything.
|
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.
http://www.linuxquestions.org/rules.php FUP here: http://www.linuxquestions.org/questi...hreadid=240464 |
All times are GMT -5. The time now is 04:31 PM. |