- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricing users to certain directories
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
05-23-2001 05:23 AM
05-23-2001 05:23 AM
We have a number of users to log in to our HP-UX 11.00 systems to analyze log files. They only need to be able to read (not edit) the files in one directory. Can this be forced?
I was thinking of setting there home directory to the logdir, and then somehow disabling the cd command.
Does anyone know how to do this or maybe have better ideas on how to accomplish.
Many thanks,
Kevin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 05:26 AM
05-23-2001 05:26 AM
Re: Restricing users to certain directories
use the restricted shell (rsh), this disables the cd command completely. See man page on sh-posix for section on rsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 05:37 AM
05-23-2001 05:37 AM
Re: Restricing users to certain directories
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 05:41 AM
05-23-2001 05:41 AM
Re: Restricing users to certain directories
rsh is a good start, but the users have a fair idea of whats going around. They can still view files using more /whatever/file.xxx
It would be an impossible job to try and change permissions on all the files.
What I am looking to do exactly, is let them view files in one directory, and nowhere else. I don't even want them to be able to ls
I know it's probably a huge task, just looking for a place to start.
I was originally thinking of using FMLI, but my HP TAM says it is not available on HP-UX
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 05:44 AM
05-23-2001 05:44 AM
Re: Restricing users to certain directories
Instead of using rsh you can accomplish what you want simply with permissions. With the directory and files set to read only there is no way someone will be able to modify them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 09:11 AM
05-23-2001 09:11 AM
SolutionThe only real way of doing this is to force the user into a restricted chrooted environment.
This can be done coding a login shell which chroot's the user to the area.
Or, the easiest way is to do it via FTP and ftpaccess - this means the users will only be able to FTP in, but you can restrict them easily.
FOr more details on this check the ftpaccess man page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 05:03 PM
05-23-2001 05:03 PM
Re: Restricing users to certain directories
usera:x:uid:gid:comment:/logdir:/usr/bin/rsh
presupposes you are not using NIS (or NIS+) if there are multiple UNIX boxes in the domain....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2001 02:40 AM
05-24-2001 02:40 AM
Re: Restricing users to certain directories
Your suggestion on chroot definetly looks like the right way to go. Don't suppose you know where there is good documentation on this, or an example of what I am try to do, as I haven't been able to find any.
Thanks again for the great idea
Kevin