- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem to configure CHROOT for Telnet
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
03-16-2007 02:12 AM
03-16-2007 02:12 AM
Problem to configure CHROOT for Telnet
I read some posts in ITRC but I can't find a post to help me. A lot of posts have tricks to do chroot with FTP, but I need this configuration for telnet.
I have an user "desenv". I want to make login with "desenv" and have the "/desenv" directory as the root "/" for this user.
I can't found anything to help. Please, if someone can help me, I'll appreciate.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 02:15 AM
03-16-2007 02:15 AM
Re: Problem to configure CHROOT for Telnet
you may have missed this one:
"Limiting where telnet users can go"
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=26166
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 02:24 AM
03-16-2007 02:24 AM
Re: Problem to configure CHROOT for Telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 02:31 AM
03-16-2007 02:31 AM
Re: Problem to configure CHROOT for Telnet
In fact I need a step-by-step.
My /etc/passwd:
desenv:DOGo6ivCKOzNY:101:20::/desenv/./:/sbin/sh
/desenv/.profile (this is the file, but I don't know what I need edit here)
chroot /desenv /
I realy need help, I am tottaly lost.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 02:40 AM
03-16-2007 02:40 AM
Re: Problem to configure CHROOT for Telnet
mkdir -p /desenv/bin
cp /bin/sh /desenv/bin
copy whatever else the user would need under desenv. You have to realize that / now starts from /desenv. If you do not have a shell, etc, copied under /desenv the user is not going to be able to do anything.
Then you could try this in /etc/profile:
if [ "$LOGNAME" = desenv ]
then
chroot /desenv
fi