Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

acledit question

Status
Not open for further replies.

michael1212

IS-IT--Management
Jun 14, 2005
36
ZA
How can I give full access to a user "ben" to a directory structure /main (owner: root), recursively, without changing the ownership, etc.?

The following seems to only set the top directory:

acledit main

* ACL_type AIXC
*
attributes:
base permissions
owner(root): rw-
group(system): r--
others: r--
extended permissions
enabled
permit rwx u:ben

THANKS!
 
Good Question michael!

we don't use the ACLs in our company so i only have the theory! I've been thru these documents (man pages) but i never found this mentioned any where!



IMHO I'm afraid that you might need to script this! (can be done using the find /main -print -exec acledit {})

Regards,
Khalid
 
I'd be wary of using ACLs.

Most anything you do with them will require scripting, including backing up and restoring files with ACLs attached (at least last time I looked into using them).

If you only need to have certain processes access the files when the user runs them, you might give sudo a look.

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

A Simple Code for Posting on the Web
 
Thanks Rod,

I do make use of sudo. Will most probably decide against Extended ACLs, because any "chmod 755" , etc...will disable the extended attribs.

Thanks guys....
Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top