Hi experts,
I'm using unix environment.
Is there a shell command to list all groups or users that have access to a specific location or file ?
ls -l does not work for me, because i need all users that can read from that directory.
Thanks in advance
ls -l is the primary tool for this. It shows you the permissions for the owner, the group and all others.
On top of that, you may have an access control list (ACL) defined. On AIX, one uses aclget to retrieve that information.
This is all you need for determining access to a directory/file.
To display members of a group, use the lsgroup command.
I need to show groups per folder/directory.
For example:
staff | /prod/crm
controlm | /prod/bi
Thanks
If "others" have read permission, everybody has access. If not, but the group has read permission, then all members of this group have access. If neither, only the owner has access. That's it. Unless you have defined ACL's.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.