1826975 Members
3163 Online
109705 Solutions
New Discussion

Disable ACL

 
Sebastien Masson
Valued Contributor

Disable ACL

Hi all,

I got a server where I found many file with ACL enabled. (The permission finish with a +). With all acl command I got Function is not available and I have many error with PAX, and all mv, cp, etc. os command.

Someone know how disabling ACL feature on all my file?!
5 REPLIES 5
Helen French
Honored Contributor

Re: Disable ACL

hey,

I am not sure whether u can disable the ACL permissions!

U can use 'chacl -d' command to remove acl entries from file/s

see man pages of chacl, acl, getacl, cpacl, setacl ..

HTH,
Shiju
Life is a promise, fulfill it!
Sridhar Bhaskarla
Honored Contributor

Re: Disable ACL

Hi Sebastian,

I don't think there is anyway you can disable ACLs.

But it's easy to manipulate acls. You can get all the acls with the command

find /yourdir -print |lsacl > file

You can use chacl command to change the acls.

chacl -z file will delete all the acls and keep the base permissions.

find /yourdir -exec chacl -z {} \;

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Uday_S_Ankolekar
Honored Contributor

Re: Disable ACL


Hi,

getacl() returns a complete listing of all ACL entries (uid.gid, mode) in an existing file's access control list. path points to a path name of a file.

Similarly, fgetacl() returns a complete listing of all ACL entries for an open file known by the file descriptor fildes.

-USA..
Good Luck..
David Lane_3
Occasional Advisor

Re: Disable ACL

This is a bit late for you now but as I am a new starter,
I managed to remove all the ACL entries for my files (accidentally) when I had to remove them all to another location using tar and then restored them all after replacing a disk in a striped setup.
Tar cannot handle the acls so they are removed. In the future I will use fbackup to move files in this way.
I hope this helps.
Sebastien Masson
Valued Contributor

Re: Disable ACL

Hi David,

Thanks for the help, appreciated. I zap and reinstall the whole server... So now, no more ACP in the picture...

:-)