> >> > some users on my server have SSH access to the machine, but I > >don't> > want them to be able to leave their home directories (ee. > >> > /home/userXYZ). > >> > > >> > What is the "best" way to implement this, does anybody know? > >> > Greetings and TIA, Matthias > > # adduser luser > # ln -s /bin/bash /bin/rbash > # echo "/bin/rbash" >> /etc/shells > # chsh -s /bin/rbash luser > # cd ~luser > # su luser > $ > > and then: > > $ cd / > rbash: cd: restricted > > > Does that accomplish what you are looking for?
Although I don't have a better idea, I don't think that's what he's looking for since luser won't be able to navigate through his/her home-directory at all (according to bash's man-page, search for rbash). Patrick B�rjesson -- Public key id: 4C5AB0BF Public key available at search.keyserver.net[:11371] -- [EMAIL PROTECTED] mailing list
