HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Restrict user
Operating System - Linux
1829712
Members
2187
Online
109992
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
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
09-21-2006 03:04 AM
09-21-2006 03:04 AM
I want to control a user can only access a specific directory eg. /tmp and /home , and can't access the other directory even the general directory eg. /usr , /var , what can I do ? I tried ibsh , but this method allow user access HOME directory ONLY , if I want the user can access a list of specific directory , what can i do ? thx
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 03:17 AM
09-21-2006 03:17 AM
Solution
well it dependes how specific you would like to be...
in general groups are OK, but it's not much scalable....
Other possibility is SELinux which gives you more options to set roles of the user.
Access-List are also good solution.
But all of this is quitte "huge" to cover it in my respons so try to google a bit and select what is best way for you.
in general groups are OK, but it's not much scalable....
Other possibility is SELinux which gives you more options to set roles of the user.
Access-List are also good solution.
But all of this is quitte "huge" to cover it in my respons so try to google a bit and select what is best way for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 05:09 AM
09-21-2006 05:09 AM
Re: Restrict user
only read access with absolute path:-
# adduser
# ln -s /bin/bash /bin/rbash
# chsh -s /bin/rbash luser
# cd /home/
#ln -s /tmp tmp
#ln -s /home home
#passwd
Or change the user path and specify a separate bin directory. Put those command only you want to let him/her execute. Change the attribute of ~.bash_profile /~.bashrc as a root.
Thanks!
# adduser
# ln -s /bin/bash /bin/rbash
# chsh -s /bin/rbash luser
# cd /home/
#ln -s /tmp tmp
#ln -s /home home
#passwd
Or change the user path and specify a separate bin directory. Put those command only you want to let him/her execute. Change the attribute of ~.bash_profile /~.bashrc as a root.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 05:41 AM
09-21-2006 05:41 AM
Re: Restrict user
you have already posted this question in the HP-UX forum, please refer to that thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1061978
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1061978
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP