Operating System - HP-UX
1833543 Members
2829 Online
110061 Solutions
New Discussion

Forgotten how to remove an ACL

 
SOLVED
Go to solution
Ralph Grothe
Honored Contributor

Forgotten how to remove an ACL

Hello,

embarrassing, but I forgot how to remove an ACL
that I deliberately set on a certain directory that belonged to another uid and gid, but which also served as a chroot dir for a real user ftp login, so that ftp user would be allowed to upload files to the dir that didn't belong to him, nor whose group he was member of.
This worked very well with the ACL.
However, this ftp user is to be removed
and thus I wish to remove the ACL,
or change it to the state it was in before (also to get rid of the pesky "+" in an ll output ;-)

I tried this but can't fathom the error message (david is the user to be userdel-ed).

# getacl .
# file: .
# owner: e01adm
# group: sapsys
user::rwx
user:david:rwx
group::r-x
class:rwx
other:r-x

# setacl -d u:david:rwx .
unknown user-id "david:rwx"

# setacl -d u:105:rwx .
unknown user-id "105:rwx"

# id david
uid=105(david) gid=500(guest)


I assume only some minor syntax misinterpretation on my behalf here.


Regards

Ralph
Madness, thy name is system administration
4 REPLIES 4
Dennis Handly
Acclaimed Contributor
Solution

Re: Forgotten how to remove an ACL

I assume you don't mention the access modes:
# setacl -d u:david .
Ralph Grothe
Honored Contributor

Re: Forgotten how to remove an ACL

Yeah Dennis,
that's it.
Thanks a lot for the reminder.

# setacl -d u:105 .

# ll -d .
drwxr-xr-x 2 e01adm sapsys 8192 Aug 22 13:30 .

# getacl .
# file: .
# owner: e01adm
# group: sapsys
user::rwx
group::r-x
class:r-x
other:r-x
Madness, thy name is system administration
Dennis Handly
Acclaimed Contributor

Re: Forgotten how to remove an ACL

You can look up man pages on the web:
http://docs.hp.com/en/B2355-60130/setacl.1.html

(If you are done, you can close this thread to leave things nice and pretty. :-)
Ralph Grothe
Honored Contributor

Re: Forgotten how to remove an ACL

Thanks for the RTFM reminder,
but I have invoked man setacl.
Maybe I flipped through it a bit too impatiently?

Nice Day too
Madness, thy name is system administration