- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Userid and group to have read access only.
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
02-28-2007 07:48 AM
02-28-2007 07:48 AM
I have created a user nmlread, group nmlread, but I need both user and group to only have read access. What needs to be done?
drwx------ 3 nmlread nmlread 4096 Feb 28 11:06 nmlread
Thanks and points will be assigned.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 08:06 AM
02-28-2007 08:06 AM
Re: Userid and group to have read access only.
chmod ug+r filename
or
chmod 440 filename
see http://en.wikipedia.org/wiki/Chmod
for more examples.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 08:08 AM
02-28-2007 08:08 AM
Re: Userid and group to have read access only.
You can use rbash to limit what the user can do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 08:17 AM
02-28-2007 08:17 AM
Re: Userid and group to have read access only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 08:25 AM
02-28-2007 08:25 AM
SolutionHow to configure:
Create a link for bash:
# ln -s /bin/bash /bin/rbash
Set the user's shell rbash
# usermod -s /bin/bash username
Create a the $HOME/bin directory for the user:
# mkdir /home/username/bin
Link the commands that you want to allow to the user in the bin directory:
# cd /home/username/bin
# ln -s /bin/ls
# ln -s /bin/date
# ln -s /bin/cat
Edit the user .bash_profile and set the PATH variable to contain only the $HOME/bin directory:
# vi /home/username/.bash_profile
PATH=$HOME/bin
export PATH
The user can only run the commands in his bin directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 08:52 AM
02-28-2007 08:52 AM