- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricted 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
08-01-2007 10:31 PM
08-01-2007 10:31 PM
Restricted Telnet
What i need is:
Create a user with shell accesss and should be able to do cd within his home directory only. Other words chrooting the home directory.
I have followed sugegstions in threads but somehow no luck.
Password file looks like:
anstest:*:105:20:Anshu Test Shell,,,:/home/anstest/./:/bin/sh
And the /etc/profile contains:
if [ "$LOGNAME" = anstest ]
then
chroot /home/anstest
fi
what is missing here? Anything else to configure.
OS 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 12:06 AM
08-02-2007 12:06 AM
Re: Restricted Telnet
An explanation of what, exactly, "no luck"
means. What happens? What doesn't work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 12:08 AM
08-02-2007 12:08 AM
Re: Restricted Telnet
if you use an * in /etc/passwd, unles you don't use a secure system, you disable login for that user.
man passwd
What exactly are your problems? Can you log in? Do you have to many or to little permissions?
Bye
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 12:27 AM
08-02-2007 12:27 AM
Re: Restricted Telnet
The chroot command requieres:
1- An chroot environment created
2- A command to execute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 12:30 AM
08-02-2007 12:30 AM
Re: Restricted Telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 12:57 AM
08-02-2007 12:57 AM
Re: Restricted Telnet
What doesnt work?:
Logging the same anstest user, user can navigate to all the file system. it doesnt show as homedir as chrooted directory.
rsh:
Yes...i gave it a try but it doesnt provide access to cd command. Is there anyway to provide access to cd command in rsh? User should be able to traverse down from his home directory, but not upwards...thats the reason i went for chroot method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 12:59 AM
08-02-2007 12:59 AM
Re: Restricted Telnet
Any pointers/threads how to get this done with SSH. I would surely give it a try. Ofcourse, auditors will be happy as well. ;)
Thanks,
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 01:01 AM
08-02-2007 01:01 AM
Re: Restricted Telnet
Ours is also a trusted system but we have implemented with ssh (chroot'd env) amd know for sure it works.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 01:06 AM
08-02-2007 01:06 AM
Re: Restricted Telnet
Is there any doc to configure chrooted env with SSH or the above settings are similar with ur env and works well when SSH is installed. Any specific config in SSH?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 01:16 AM
08-02-2007 01:16 AM
Re: Restricted Telnet
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1122269
will try it out....still appreciate if anyone can shed light on the original question :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 11:14 PM
08-08-2007 11:14 PM
Re: Restricted Telnet
/opt/ssh/README_chroot.html
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2007 05:36 PM
08-12-2007 05:36 PM
Re: Restricted Telnet
/opt/ssh/README_chroot.html helped and the responses above