LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-15-2011, 12:05 PM   #1
drManhattan
Member
 
Registered: Aug 2010
Location: Warsaw, Poland
Distribution: Ubuntu 10.04 LTS on IBM Lenovo R61e, RHEL5-6,SLES10-11
Posts: 262

Rep: Reputation: 1
SUID capital S


Hi

I set SUID on some script and I see that there is small letter s but on some other files I see capital S.

Small s.
Code:
-rwsr--r--  1 jakubn jakubn  6987 2010-12-26 21:30 opers_raports.txt
capital S
Code:
-rwSr--r--  1 jakubn jakubn  6987 2010-12-26 21:30 opers_raports.txt
What is the difference between s and S in SUID ?
 
Old 05-15-2011, 12:28 PM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
The S is lowercase when the executable bit is set, and uppercase if not.

Last edited by MTK358; 05-15-2011 at 12:31 PM.
 
Old 05-15-2011, 12:33 PM   #3
drManhattan
Member
 
Registered: Aug 2010
Location: Warsaw, Poland
Distribution: Ubuntu 10.04 LTS on IBM Lenovo R61e, RHEL5-6,SLES10-11
Posts: 262

Original Poster
Rep: Reputation: 1
This I already know.
But what it means in the context of file system perms ?
 
Old 05-15-2011, 12:39 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
When the S is capital, the file is setuid but not executable. When it's lowercase, it's setuid and executable. Those are the filesystem perms.

I don't get what you don't get.
 
1 members found this post helpful.
Old 05-15-2011, 12:40 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by AlucardZero View Post
When the S is capital, the file is setuid but not executable. When it's lowercase, it's setuid and executable. Those are the filesystem perms.
That's exactly what I said, and there isn't really anything more to explain.
 
  


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
chmod - need help with options capital D and capital F.. cookiedough Linux - Newbie 4 04-04-2011 09:07 PM
capital letter email id sachin_keluskar Linux - Software 3 09-02-2005 11:07 AM
How to preserve capital letters? kosa Linux - General 1 07-14-2005 02:44 PM
Capital i shows up as [ {O_o} Linux - Newbie 0 10-06-2004 09:33 PM
SUID file drops suid bit on append? c_coder Programming 1 03-12-2004 08:59 AM


All times are GMT -5. The time now is 06:50 AM.

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