Thread View: uw.unix
1 messages
1 total messages
Started by Andrew Thomas
Fri, 18 Aug 1989 21:15
How do I make a user shell run with chroot?
Author: Andrew Thomas
Date: Fri, 18 Aug 1989 21:15
Date: Fri, 18 Aug 1989 21:15
17 lines
1081 bytes
1081 bytes
I would like to modify a user login shell to include a call to chroot at the beginning of the shell. This is easily accomplished by using bash for which I have sources. The problem is that chroot is only callable by the superuser. This means that the shell would have to be setuid to root, which kind of introduces a security problem. Is there a way to have a normal user log on and only see one branch of the directory tree? Is it possible for the shell, for example, to change its own uid to it changes back to the user's uid after the chroot call has been made? I jes' gots to know! Thanks, -- Andrew Thomas andrewt@watsnew.waterloo.edu Systems Design Eng. University of Waterloo "If a million people do a stupid thing, it's still a stupid thing." - Opus
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads