Operating System - HP-UX
1833687 Members
4160 Online
110062 Solutions
New Discussion

enable ACL on a filesystem

 
Nabil Boussetta
Frequent Advisor

enable ACL on a filesystem

how to make filesystem supporting ACLs
8 REPLIES 8
Muthukumar_5
Honored Contributor

Re: enable ACL on a filesystem

You have to create JFS for making ACL's on files.

hth.
Easy to suggest when don't know about the problem!
VEL_1
Valued Contributor

Re: enable ACL on a filesystem


By default, mount command with -o provide the ACL support.
Muthukumar_5
Honored Contributor

Re: enable ACL on a filesystem

you can also enable acl on hfs file systems also using fgetacl() call.

/stand/vmunix is using hfs fs. It is acl is as,

# lsacl -l /stand/vmunix
/stand/vmunix:
rwx root.%
r-x %.sys
r-x %.%
# ls -l /stand/vmunix
-rwxr-xr-x 1 root sys 29939416 Apr 13 19:22 /stand/vmunix

hth.
Easy to suggest when don't know about the problem!
Alessandro Pilati
Esteemed Contributor

Re: enable ACL on a filesystem

Nabil,
see man pages of
aclv
acl
chacl
lsacl
getacl

Rgds,
Alex
if you don't try, you'll never know if you are able to
Muthukumar_5
Honored Contributor

Re: enable ACL on a filesystem

ACL support is enabled for HFS and JFS file system by default. Refer: man 2 access

hth.
Easy to suggest when don't know about the problem!
RAC_1
Honored Contributor

Re: enable ACL on a filesystem

for hfs,

lsacl
chacl

for vxfs (min version should be 4)
getacl
setacl
There is no substitute to HARDWORK
Florian Heigl (new acc)
Honored Contributor

Re: enable ACL on a filesystem

You need at least version 3 vxfs for ACLs to work (at least that's what I remeber)
yesterday I stood at the edge. Today I'm one step ahead.
Matthew_50
Valued Contributor

Re: enable ACL on a filesystem

first of all, file system layout must be jfs 4.0 to support jfs acl
example as following

# vxupgrade /db01
/db01: vxfs file system version 3 layout

# fstyp -v /dev/vgdb/rlvol1
vxfs
version: 3 -> means current file system version is 3 layout
f_bsize: 8192
f_frsize: 1024
f_blocks: 20480
f_bfree: 19366
f_bavail: 18156
.
.
.
.

we need to upgrade the /db01 file system layout to version 4
# vxupgrade -n 4 /db01

* beware, you can't recover the file system layout from 4 to 3, which upgrade from 3