Operating System - HP-UX
1753395 Members
7206 Online
108792 Solutions
New Discussion

What is the s means in the group portion of the permissions ?

 
rveri-admin
Frequent Advisor

What is the s means in the group portion of the permissions ?

Experts, 

Please help understanding the type of file pemissions with s , is it setgid ? ,

 

 

-r-sr-x--- 1 cmuser orasys 1057 Jan 5 2013 ccmuser
-r-sr-x--- 1 dmuser orasys 1057 Jan 5 2013 cdmuser

 

Pleae help to understand :

1. why it is used for.

2. How to set this permission . 

 

hp-uxv3 .  Thanks. 

2 REPLIES 2
Bill Hassell
Honored Contributor

Re: What is the s means in the group portion of the permissions ?

man ls

 

and 

 

man chmod

 

ll shows the current values, chmod can change the values (aka, permissions)



Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: What does the s means in the user permissions?

>file permissions with s, is it setgid?

-r-sr-x--- 1 cmuser orasys ccmuser

 

No, your "s" is in the user portion.

 

>1. Why it is used for?

 

To do setuid scripts.

 

>2. How to set this permission?

 

chmod u+s file