LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 11:05 AM   #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, 11:28 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

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

Last edited by MTK358; 05-15-2011 at 11:31 AM.
 
Old 05-15-2011, 11:33 AM   #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, 11:39 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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, 11:40 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:06 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
Open Source Consulting | Domain Registration