1832592 Members
3206 Online
110043 Solutions
New Discussion

acl in hpux 11i

 
SOLVED
Go to solution
Shivkumar
Super Advisor

acl in hpux 11i

Hi,

I am aware of acl on Sun Solaris.

I never came across acl discussion on this forum.

Is acl works the same way on hpux 11i as Solaris ?

Thanks,
Shiv
8 REPLIES 8
Arunvijai_4
Honored Contributor

Re: acl in hpux 11i

Hi Shiv,

Yes, ACL is supported in HP-UX. Check getacl and setacl .. Something like this,

# getacl -ad /tmp/SSH.depot
# file: /tmp/SSH.depot
# owner: root
# group: sys
user::rw-
group::---
class:---
other:---


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
RAC_1
Honored Contributor

Re: acl in hpux 11i

It is supported. man setacl and getacl. You need to have vxfs version 4 for this.
There is no substitute to HARDWORK
inventsekar_1
Respected Contributor

Re: acl in hpux 11i

ACL concept is very interesting.
full security assured.

in the ManagingSystemsAndWorkgroups pdf, u can find a good chapter for ACL at page number 753.

and one more thing.
/* HP-UX was the first Unix to use access control lists for file access permissions rather than the standard Unix permissions system.*/
http://en.wikipedia.org/wiki/HPUX

reference:
http://en.wikipedia.org/wiki/Access_control_list
Be Tomorrow, Today.
inventsekar_1
Respected Contributor

Re: acl in hpux 11i

hi Shiv,
Managing Systems and Workgroups: A Guide for HP-UX System Administrators:
the book link:
http://docs.hp.com/en/B2355-90950/index.html

refer this page for ACL concepts:
http://docs.hp.com/en/B2355-90950/ch08s04.html
Be Tomorrow, Today.
Raj D.
Honored Contributor
Solution

Re: acl in hpux 11i

Shiv,

File Access Control List (ACL) supported on hp-ux under jfs filesystem.

getacl - list access control lists (ACLs) for files .
lsacl


lsacl - list access control lists (ACLs) of files
Ex: #lsacl -l file_name


setacl - modify access control lists (ACLs) for files .

You can check the manpage for more details.


Cheers,
Raj.



" If u think u can , If u think u cannot , - You are always Right . "
Peter Nikitka
Honored Contributor

Re: acl in hpux 11i

Hi,

if my memories don't fail, ACLs were available for filesystemtype HFS as well.

Using ACLs in NFS-mounted filesystems in a heterogenous environment (Solaris, HP-UX, Linux) is not always smooth - especially when setting ACLs on the NFS client.

I don't mind, however:
I recommend more than double check in such a case.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
bhupesh m
Frequent Advisor

Re: acl in hpux 11i

solaris ACL and hpux acl works same.
the name says:
the access can be controlled.
doug hosking
Esteemed Contributor

Re: acl in hpux 11i

Peter, ACLs are indeed supported on HFS, though with different APIs. (HFS ACL support predates support for VxFS file systems, which implemented ACLs in a different way.)

See "man 5 acl" and "man 5 aclv" for an introduction to each. The 'see also' section at the bottom of each points to relevant APIs, as usual.