- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricted User 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
12-03-2008 03:32 AM
12-03-2008 03:32 AM
Restricted User Environment
i have an application whose logs are being collected in /opt/app/log.
i want to create a user who would have permissions only for /opt/app/log directory and must not be able to wander and execute system commands else where in the system. In /opt/app/log he should have only read access.
my OS is hp-ux v2 and hardware is pa risc.
please accept thanks in advance.
Regards,
Asghar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 03:41 AM
12-03-2008 03:41 AM
Re: Restricted User Environment
you should set up a chrooted user for this purpose. Here is a document that might provide you with some hints on how to do it:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=115&prodSeriesId=3215373&prodTypeId=18964&objectID=c01516983
Jozef
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 03:53 AM
12-03-2008 03:53 AM
Re: Restricted User Environment
my idea if u want to give permission to readonly for that file means
u can create a shell script or add an entry to the cron ta for appending those log to the particular user's file
for example
1.create a directory in the user's home directory
2.then create numer of files equal to the numer of files in that log directory
3. then create a script so that the content of a paticular file wil get redirected to that user file
cat logfile1 > (equalent file in that user directory)
4.similarly for all files
5.add this script in cronta so that the user file get updated in regular intervals
so that the user can read that log file.
thank u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 04:15 AM
12-03-2008 04:15 AM
Re: Restricted User Environment
if i make logs directory as home to ftp user, i'll have to change the permissions of logs directory that will affect the application itself in return.
i think i could type what i am thinking. your replies will make me understand if i could explain my problem well.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 04:24 AM
12-03-2008 04:24 AM
Re: Restricted User Environment
This way, the user can find the (read-only if you want) on his/her local machine and has no option of walking around elsewhere in any way.