1757753 Members
2160 Online
108863 Solutions
New Discussion юеВ

Re: Permissions query

 
SOLVED
Go to solution
Charlie Tynan
New Member

Permissions query

I'm hoping someone can shed some light on an issue I'm currently having.

When I do "ls -l" on a directory, I see "drwxrws---+ " and I would like to see "drwxrwx---+ ".

What is the 's' and how do I change it to 'x'?

When I do ls -dV on the directory, I get the following ACL's -
group:grp1:--------------:------:deny
group:grp1:r-x-----------:------:allow
group:grp2:--------------:------:deny
group:grp2:r-x-----------:------:allow
owner@:--------------:------:deny
owner@:rwxp---A-W-Co-:------:allow
group@:--------------:------:deny
group@:rwxp----------:------:allow
everyone@:rwxp---A-W-Co-:------:deny
everyone@:------a-R-c--s:------:allow


Many thanks from a newbie here.
3 REPLIES 3
Viktor Balogh
Honored Contributor

Re: Permissions query

the s has nothing to do with acl. that is the SGID bit, and you can change it with chmod:

# chmod g-s dirname
****
Unix operates with beer.
Charlie Tynan
New Member

Re: Permissions query

Cheers Viktor.

Thanks for the guidance.
Viktor Balogh
Honored Contributor
Solution

Re: Permissions query

its meaning is:

"SGID on directory: the new files under that directory will be made with the same group as the parent directory"

see

http://viktorbalogh.net/blog/hp-ux/hp-ux_sysadm/a-good-sysadmin-every-day-learns-some-new-things
****
Unix operates with beer.