- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- chroot ssh implementation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 11:43 PM
09-20-2006 11:43 PM
chroot ssh implementation
How can we setup a chrooted SSH.
I've gone through a no. of webpages but they have got their own tools or packages or patches that I do not want to use rather I want to implement it using the default packages available in RHEL.
Tried implementing the pam_chroot.so & also used /etc/security/chroot.conf but didn't succeed.
So, kindly help me in implementing this using step by step approach....
Thanks a lot in advance!!!
ATUL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 01:34 AM
09-21-2006 01:34 AM
Re: chroot ssh implementation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 01:52 AM
09-21-2006 01:52 AM
Re: chroot ssh implementation
thanks a lot for this pdf but i've already gone through this one and couldn't implement the same...that's why I had to go for some expert advice.
Please correct me and suggest me beside what I did ---
1) Creating a chroot dir (such as /home/chroot)
2) Creating supporting directories (such as /lib, /usr/lib, /home, /bin)
3) Copying necessary files from actual directories to the ones creating under chrooted directory.
4) Adding users and specifying their home directory as the path to the chroot dir.
5) Specifying the shell present under chroot dir.
6) Editing /etc/security/chroot.conf and specifying information in the format ---
e.g. example /tmp/chroot/home/example
7) Editing /etc/pam.d/ssh and mentioning ---
session required pam_chroot.so
WHAT ELSE DO I NEED TO DO........???
Kindly suggest me.....
If i'm wrong at this point then do correct me considering yourself as an expert and me as a newbie....
--
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 02:30 AM
10-16-2006 02:30 AM
Re: chroot ssh implementation
Kindly help me....
Do I need to perform any other step...if yes then please suggest me.
TIA
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 05:52 AM
10-16-2006 05:52 AM
Re: chroot ssh implementation
You may have a problem going chroot.
To make chroot work all binaries and OS utils must be available in the directory the user is chrooted to.
If this user is developing code they need much broader access to the system than chroot provides.
I think we're in diagnostic mode and I'd like to see what errors are occurring at login and the system level (/var/log/messages, /var/log/secure) in order to be more helpful.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 08:53 PM
10-16-2006 08:53 PM
Re: chroot ssh implementation
2) add /etc and /sbin
4 and 5) path and shell you specify are relative to chroot dir. So you should omit the path to chroot dir:
Let's say the chroot dir is /local/chroot/
and the home directory for a user is /local/chroot/home/user, in /etc/passwd you specify /home/user as home directory.
Same treatment for shell.
also create chroot_path/dev/null
with mknod chroot_path/dev/null c 1 3
and
chown 666 chroot_path/dev/null
This should help.