- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Resticted permission
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
Discussions
Discussions
Forums
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
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-02-2009 10:50 AM
тАО02-02-2009 10:50 AM
Resticted permission
How are you??
Need assistances,
I want to restict perticular user.
Ex: on server-A
server-A #cd /opt/pratibha
server-A #ls -l
drwxr-xr-x 2 root sys 96 Jan 7 06:01 Test1
-rwx-r--r-- 1 root sys 20 Mar 17 2008 tmp1
-rw-r--r-- 1 root sys 68 Apr 1 2008 test
server-A # id pratibha
id=401(pratibha) gid=123(sys)
Please give permission to user pratibha, only read test file
But cant see others File/Directories exists under /opt/pratibha.
Thanks in advance.
Pratibha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 03:19 AM
тАО02-06-2009 03:19 AM
Re: Resticted permission
Hi ,
Use acl
See man page of "setacl" command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 04:31 AM
тАО02-06-2009 04:31 AM
Re: Resticted permission
For using the discretionary rights on a file you can take help of the setacl , chacl commands etc. with the help of this apart from the basic permisiions on a file you can give 13 other Disretionary rights on a file.
if you are using the HFS on the underlying Filesystem as you can see from the bdf O/P, you can use the commands
#lsacl
and
#chacl
in your case you can try by
#chacl '(pratibha.%,r--)' test
List the ACL
#lsacl -l test
if VxFS(quite OLD versions of VxFS did not support ACLs)
then use setacl and getacl
#setacl -m "user:pratibha:r--" /opt/pratibha/test
#getacl /opt/pratibha/test
For more you can refer to the manpages of lsacl,chacl,setacl and getacl.
Also the FS Should have a support for ACL.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 05:08 AM
тАО02-06-2009 05:08 AM
Re: Resticted permission
You don't need to do anything with current permission of test file. Currently this user is only having read permission on test file.
By the way, why do you set pratibha user as part of sys group? for testing purpose? Because sys is specific to system group not for ordinary users.
And setacl is to give special permission by overriding traditional unix file permission. For example if "pradiba" user needs executable permission on specific file on which this user/his group/others have not executable permission, then you need to use setacl. Syntax would be
#setacl -m user:pradiba:r-x test.sh -> will add read and write permission on test.sh for user pradiba user.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 05:10 AM
тАО02-06-2009 05:10 AM
Re: Resticted permission
Typo error on my last post. It should be like below.
#setacl -m user:pradiba:r-x test.sh -> will add read and execute permission on test.sh for user pradiba user.
Ganesh.