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.iehttp://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at linux.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!