- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: give read permission to a certain user to a ce...
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
тАО01-29-2009 01:05 AM
тАО01-29-2009 01:05 AM
give read permission to a certain user to a certain file
I tried some commands below. But still i get an error.
#setacl -m u:user1:r-- /tmp/test22/admin/aaa
# find /tmp/test22/admin/aaa -exec setacl -m u:user1:r /tmp/test22/admin/aaa {} \;
# find /tmp/test22/admin/aaa -exec setacl -m u:user1:r /tmp/test22/admin/aaa {} ';'
OUTPUT:
$whoami
user1
$ cat /tmp/test22/admin/aaa
cat: Cannot open /tmp/test22/admin/aaa: Permission denied
$ cat /tmp/test22/admin/aaa
cat: Cannot open /tmp/test22/admin/aaa: Permission denied
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 01:32 AM
тАО01-29-2009 01:32 AM
Re: give read permission to a certain user to a certain file
Only use setactl(1).
What does "ll /tmp/test22/admin/aaa" show?
You also need to make sure the user has X access on the directories: /tmp/test22 /tmp/test22/admin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 01:57 AM
тАО01-29-2009 01:57 AM
Re: give read permission to a certain user to a certain file
#setacl -m u:user1:r-x /tmp/test22/admin/aaa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 02:05 AM
тАО01-29-2009 02:05 AM
Re: give read permission to a certain user to a certain file
setacl -m u:user1:r-x /tmp/test22/admin/aaa
but still it occurs. And im not really fond of using
-x beacuse what if the file is executable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 02:06 AM
тАО01-29-2009 02:06 AM
Re: give read permission to a certain user to a certain file
This (X) is only needed for directories and executables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 02:13 AM
тАО01-29-2009 02:13 AM
Re: give read permission to a certain user to a certain file
still permission denied. i could not afford to change the permission of /tmp/test22/admin.
So all i have to do is to setacl. BUt setacl cannot solve the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 02:23 AM
тАО01-29-2009 02:23 AM
Re: give read permission to a certain user to a certain file
>So all iI have to do is to setacl. But setacl cannot solve the problem.
You need to use setacl on /tmp/test22/admin:
setacl -m u:user1:--x /tmp/test22/admin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 02:31 AM
тАО01-29-2009 02:31 AM
Re: give read permission to a certain user to a certain file
setacl -m u:aris:--x /tmp/test22/admin/aaa has no effect :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 02:41 AM
тАО01-29-2009 02:41 AM
Re: give read permission to a certain user to a certain file
Please provide the output for the whole path:
getacl / /tmp /tmp/test22 tmp/test22/admin /tmp/test22/admin/aaa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 03:05 AM
тАО01-29-2009 03:05 AM
Re: give read permission to a certain user to a certain file
# getacl / /tmp /tmp/test22 tmp/test22/admin /tmp/test22/admin/aaa
# file: /
# owner: root
# group: root
user::rwx
group::r-x
class:r-x
other:r-x
# file: /tmp
# owner: root
# group: root
user::rwx
group::rwx
class:rwx
other:rwx
# file: /tmp/test22
# owner: root
# group: sys
user::rw-
user:aris:r-x
group::rw-
class:rwx
other:---
file "tmp/test22/admin" not found
# file: /tmp/test22/admin/aaa
# owner: root
# group: sys
user::rw-
user:aris:--x
group::rw-
class:rwx
other:---
#