- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: creating ls in a chrooted environment
Operating System - HP-UX
1752577
Members
5027
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО11-28-2001 02:20 PM
тАО11-28-2001 02:20 PM
i'm trying to get a 'dir' command to work for ftp users that are chrooted. i have copied the ls command to the ~/bin directory, and copied the shared libraries to the ~/usr/lib directory. (special thanks to j ferguson and others who provided me with the chatdr command)
there were two shared files indicated by chatr, libc.2 and libcurses.1. it's still not working, however by issuing an ls -lu i can tell that everything is being accessed with the exception of the libcurses.1
here's the permissions:
~/lib
-r-xr-xr-x 1 root sys 1462272 Nov 28 16:30 libc.2
-r-xr-xr-x 1 root sys 196608 Nov 28 16:29 libcurses.1
-r-xr-xr-x 1 root sys 126976 Nov 27 19:08 dld.sl
any ideas on what is going wrong?
there were two shared files indicated by chatr, libc.2 and libcurses.1. it's still not working, however by issuing an ls -lu i can tell that everything is being accessed with the exception of the libcurses.1
here's the permissions:
~/lib
-r-xr-xr-x 1 root sys 1462272 Nov 28 16:30 libc.2
-r-xr-xr-x 1 root sys 196608 Nov 28 16:29 libcurses.1
-r-xr-xr-x 1 root sys 126976 Nov 27 19:08 dld.sl
any ideas on what is going wrong?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 02:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 02:35 PM
тАО11-28-2001 02:35 PM
Re: creating ls in a chrooted environment
BTW,
The dyna-linked version of ls is looking for the libraries in /usr/lib
$chatr /usr/bin/ls
dynamic /usr/lib/libcurses.1
dynamic /usr/lib/libc.2
From a security standpoint, minimize what goes in the chroot area - use /sbin/ls instead.
The dyna-linked version of ls is looking for the libraries in /usr/lib
$chatr /usr/bin/ls
dynamic /usr/lib/libcurses.1
dynamic /usr/lib/libc.2
From a security standpoint, minimize what goes in the chroot area - use /sbin/ls instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 02:52 PM
тАО11-28-2001 02:52 PM
Re: creating ls in a chrooted environment
As I told you on your previous email, use the static ls../sbin/ls.
However your chroot'd environment is not correct if you have ~/lib..it needs to be ~/usr/lib.
However your chroot'd environment is not correct if you have ~/lib..it needs to be ~/usr/lib.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP