- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to restrict a user to a specific directory...
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
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
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-14-2016 12:56 PM
03-14-2016 12:56 PM
how to restrict a user to a specific directory?
I want to create a new user on a 11.31 system and give that user access to just one directory, is that possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2016 09:15 PM
03-14-2016 09:15 PM
Re: how to restrict a user to a specific directory?
I've never done it, so I know nothing, but...
The FTP server has a scheme for doing this to anonymous and guest
users using chroot. It's easier there, because the FTP server needs
only a small subset of programs/libraries from the normal /usr/bin,
/usr/lib, and so on, so making private copies of them is not a big job.
For an otherwise normal user, who needs access to a full range of normal
programs, the job gets bigger. Ignoring that, I'd try making the user's
default shell a script which does chroot and then runs a normal shell.
What does the special user need to do? For a limited set of tasks,
it might be simpler to give him a default shell with limited
capabilities (instead of a normal shell), and not try to limit file
access in some other way.