HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Secure User
Operating System - HP-UX
1825764
Members
2123
Online
109687
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
03-01-2002 02:08 AM
03-01-2002 02:08 AM
Secure User
Hi,
I have created a standard unix user with ksh shell.
Is there a way of only allowing the user to create files in his home directory ?
I have tried using /home/user/./ but doesn't work
Cheers
I have created a standard unix user with ksh shell.
Is there a way of only allowing the user to create files in his home directory ?
I have tried using /home/user/./ but doesn't work
Cheers
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 02:13 AM
03-01-2002 02:13 AM
Re: Secure User
Hi,
One way is to use chroot, so that the virtual root is /home/user
The other way is to use restricted sam, force the user to run sam upon login in the /etc/profile or /etc/csh.login within traps.
In your restricted sam, configure a script that prompts the user for a file to be created. This script sanitizes the input and removes any pathname attached ie. only taking the filename.
In this way, the user can only create files in his home directory. You can also restrict the commands this user can perform using restricted sam.
Hope this helps. Regards.
Steven Sim Kok Leong
One way is to use chroot, so that the virtual root is /home/user
The other way is to use restricted sam, force the user to run sam upon login in the /etc/profile or /etc/csh.login within traps.
In your restricted sam, configure a script that prompts the user for a file to be created. This script sanitizes the input and removes any pathname attached ie. only taking the filename.
In this way, the user can only create files in his home directory. You can also restrict the commands this user can perform using restricted sam.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2002 02:27 AM
03-01-2002 02:27 AM
Re: Secure User
Hi,
Strictly speaking, I don't think you want to restrict the user to just only write files in /home/user.
There are a lot of programs that require temporary files to be written especially in /tmp and /var/tmp (such as vi).
If you remove the write access, then such programs are likely to encounter difficulties in running. You may have to perform quite a bit of reconfiguration as a result.
Hope this helps. Regards.
Steven Sim Kok Leong
Strictly speaking, I don't think you want to restrict the user to just only write files in /home/user.
There are a lot of programs that require temporary files to be written especially in /tmp and /var/tmp (such as vi).
If you remove the write access, then such programs are likely to encounter difficulties in running. You may have to perform quite a bit of reconfiguration as a result.
Hope this helps. Regards.
Steven Sim Kok Leong
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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP