[ILUG] Restricte bash login
nothingworks at eircom.net
Sat Jan 12 00:16:39 GMT 2002
yeah theres a few options available.
You can set up an rbash shell (if its installed on your system), have a look
at the manpage for rbash. Firstly
set the user's shell to /usr/bin/rbash (or whatever the path is to it), then
create a directory like /usr/local/share/rbash/bin/ and set up symlinks in
there to whatever binaries you want the user to be able
to execute, and set the user's PATH variable to that directory. Now they
have a restricted shell and you
control what commands they can run :)
Alternatively you could chroot them to /usr/local/apache/whatever, and
create a directory structure in there with the binaries that you want
to give them access to, the syntax is:
chroot -u <user/group> <directory-to-chroot-to>
So they wont be able to see above that particular directory.
From: ilug-admin at linux.ie [mailto:ilug-admin at linux.ie]On Behalf Of Tom
Sent: 11 January 2002 14:04
To: ilug at linux.ie
Subject: [ILUG] Restricte bash login
What is available to create a user with a restricted
shell? I need to create a user with a home directory
/usr/local/apache/whatever but I want to restrict him
to this directory.
Irish Linux Users' Group: ilug at linux.ie
http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at linux.ie
More information about the ILUG