LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2004, 10:14 PM   #1
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
What is the use of chmod g+s?


Why is it not in the man pages of chmod?
 
Old 10-21-2004, 10:25 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
It is, but not specific'ly...
Code:
The   format   of   a   symbolic   mode   is    ‘[ugoa...][[+-=][rwxXs-
tugo...]...][,...]’.   Multiple symbolic operations can be given, sepa-
rated by commas.

A combination of the letters ‘ugoa’ controls which users’ access to the
file  will  be  changed:  the  user who owns it (u), other users in the
file’s group (g), other users not in the file’s group (o), or all users
(a).   If  none of these are given, the effect is as if ‘a’ were given,
but bits that are set in the umask are not affected.

The operator ‘+’ causes the permissions selected to  be  added  to  the
existing  permissions  of each file; ‘-’ causes them to be removed; and
‘=’ causes them to be the only permissions that the file has.

The letters ‘rwxXstugo’ select the new  permissions  for  the  affected
users:  read  (r),  write (w), execute (or access for directories) (x),
execute only if the file is a directory or already has execute  permis-
sion  for  some user (X), set user or group ID on execution (s), sticky
(t), the permissions granted to the user who owns  the  file  (u),  the
permissions  granted to other users who are members of the file’s group
(g), and the permissions granted to users that are in  neither  of  the
two preceding categories (o).
 
Old 10-21-2004, 10:32 PM   #3
kvedaa
Member
 
Registered: Mar 2004
Location: Virginia
Distribution: PacketProtector
Posts: 331

Rep: Reputation: 30
For further extrapolation the sgid process you might want to look at:

http://www.library.yale.edu/~lso/wor...sions/sgid.htm

Enjoy
 
Old 10-21-2004, 10:44 PM   #4
markjsutton
LQ Newbie
 
Registered: Oct 2004
Distribution: rh 7.2, dsl, mandrake
Posts: 11

Rep: Reputation: 0
chmod is a .....

chmod is a command used to change access permissions

-----------

the options g+s are as follows:

g - the permissions that other users in the file's group have for it

s - set user or group ID on execution

-------

here is a sample usage:

chmod =rwx,g+s filename

(allow everyone to read, write, and execute a particular file and turn on the set group-ID)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Chmod Centinul Linux - Newbie 8 06-30-2005 11:44 AM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 09:53 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 06:37 AM
Chmod gibbylinks Linux - Newbie 1 10-23-2003 12:17 PM
chmod u+s csDraco_ Slackware 6 04-22-2003 09:44 AM


All times are GMT -5. The time now is 05:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration