The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to Single user mode? gkreddy UNIX for Dummies Questions & Answers 1 10-25-2007 10:31 PM
User Mode Linux tiemars UNIX for Advanced & Expert Users 0 09-13-2006 06:39 PM
Question on Set User ID on Execution akrathi UNIX for Dummies Questions & Answers 7 10-07-2005 01:31 PM
adding a user in single user mode ECBROWN SUN Solaris 1 03-31-2005 12:26 PM
single user mode - user accounts passwords orestis UNIX for Dummies Questions & Answers 2 03-09-2005 06:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 03-01-2007
Registered User
 

Join Date: Aug 2004
Posts: 141
Set User ID on execution mode.

I have a directory. To this directory, for Group bits combination, it is showing as 's'. Which I found out, it means "Set User ID on execution mode". Within this directory I am not able to create subfolder.

Does it mean, only the Owner of this directory will be able to create subdirectories & new files under this?
Reply With Quote
Forum Sponsor
  #2  
Old 03-02-2007
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
The 's' bit on a directory is the set-gid bit.
New files will be created in the directory with the group of the directory itself.

Check if you are in the group, as listed by the directory for which s-gid bit is set.

If so, you should able to create files within that!
Reply With Quote
  #3  
Old 03-02-2007
Registered User
 

Join Date: Aug 2004
Posts: 141
How I should check, if I am part of that group? Is there any command or else I'll have to catch the administrator?
Reply With Quote
  #4  
Old 03-02-2007
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
use the command

Code:
groups
available as

/usr/bin/groups

and check whether you are in that group!
Reply With Quote
  #5  
Old 03-02-2007
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
Am not sure if groups would be available in all the distributions

If groups is not available
use

id -Gn
Reply With Quote
  #6  
Old 03-02-2007
Registered User
 

Join Date: Mar 2007
Location: Chennai
Posts: 222
Also pls try,

ypcat passwd | grep yourLoginID
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0