LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Restricte bash login

[ILUG] Restricte bash login

Robert Gallagher 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.

-----Original Message-----
From: ilug-admin at linux.ie [mailto:ilug-admin at linux.ie]On Behalf Of Tom
Cooper
Sent: 11 January 2002 14:04
To: ilug at linux.ie
Subject: [ILUG] Restricte bash login


Hi all,

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.

Cheers,
Tom


--
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 mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell