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

Re: chroot()ing a user's login




On Thu, 23 Dec 1999, Ookhoi wrote:
> > I will try to reproduce it at home.... It seems to be quite useful for ISP
> > setups... In the meantime, did you try giving 
> >    
> >   chroot /usr/remote /bin/bash
> > 
> > as your login shell? Of course enter it into /etc/shells as well. I did
> > not try it yet, but it could even work.
> 
> You mean in /usr/remote/etc/passwd ?  That wil not work, because it then
> can't chroot to /usr/remote  In /etc/passwd it is not nescessary because
> the chroot works already. If I do a login in stead of a su, I see the
> motd from /etc/motd at the first login, and the /usr/remote/motd at the
> second login (you have to type in your password twice for a chroot
> login).

I meant in /etc/passwd. Who knows... Murphy is always lurking around.

Robert Varga


Reply to: