- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- chroot environment
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-10-2004 11:01 PM
03-10-2004 11:01 PM
chroot environment
I had a problem to set a chroot environment.
I followed doc A4161307 but it is old and system asks other libraries. After copying those libraries all seem work but I obtain
# telnet pippo
login: bal
Password:
Subsystem root: /home/bal/
login: bal
Login incorrect
login: Connection closed by foreign host.
#
Can anybody help me to set a good chroot environment?
Thanks in advance!
Kind regards,
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 11:11 PM
03-10-2004 11:11 PM
Re: chroot environment
chroot newroot shell
Example:
If you wanted / to be what you is currently /newdir then you could type:
chroot /newdir /bin/sh
This will kick off the /bin/sh and refer to /newdir as /
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 05:42 AM
03-11-2004 05:42 AM
Re: chroot environment
Are you to trying to setup a chroot login for ur user ?
It only provides the system prompt; you'll need to move over any
files/commands/libraries that you want in a manner similar to that
outlined in the following steps:
1. mkdir the following:
/home/bal/dev
/home/bal/usr
/home/bal/sbin
/home/bal/usr/bin
/home/bal/etc
/home/bal/usr/lib
2. cp the following:
/usr/lib/dld.sl /home/bal/usr/lib
/usr/lib/libc.1 /home/bal/usr/lib
/usr/lib/libdld.1 /home/bal/usr/lib
/usr/lib/libsec.1 /home/bal/usr/lib
3. vi /etc/passwd and make this change:
bal::107:20::/home/bal:/sbin/sh
to
bal::107:20::/home/bal:*
4. cp /etc/passwd /home/bal/etc/passwd
5. vi /home/bal/etc/passwd and make this change:
bal::107:20::/home/bal:*
to
bal::107:20::/:/sbin/sh
6. cp the following:
/etc/group /home/bal/etc/group
/usr/bin/login /home/bal/usr/bin/login
/sbin/sh /home/bal/sbin/sh
7. cd /dev
8. find config | cpio -pdumvx /home/bal/dev
9. find tty | cpio -pdumvx /home/bal/dev
10. Try logging in as the user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 07:28 PM
03-11-2004 07:28 PM
Re: chroot environment
thanks for your response but those steps exactly are into doc A4161307. I know that other dev/files/libraries are needed and even other libraries than doc A4161307.
I already tried it and I obtain
# telnet pippo
login: bal
Password:
Subsystem root: /home/bal/
login: bal
Login incorrect
login: Connection closed by foreign host.
#
I hope to receive other hints!
Kind regards,
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 12:59 AM
03-12-2004 12:59 AM
Re: chroot environment
I found S1100003443 - Sys Adm: Using sub-login feature of login(1) on HPUX 11.00
and it helped me to solve the problem.
However thanks for your hints!
Pedro