LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-24-2010, 02:01 AM   #1
venmugil
LQ Newbie
 
Registered: Feb 2007
Location: India
Distribution: Mac OS X, Ubuntu 9.04
Posts: 21

Rep: Reputation: 15
Question setuid without execute bit


setuid bit allows the process to execute the file with the uid of the file. But, what is the purpose of setting setuid without execute bit?

The man page tells that if a file is setuid without execute flag, the permission will be displayed as 'S' (capital s) in ls command. Why should anyone set the setuid without execute flag?

Does setting setuid without execute flag have any special meaning?
 
Old 01-24-2010, 08:57 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
I would think it is just a case of orthogonality, of every combination being available. The 'S' is just so you know the x bit is not set. Likewise, you can have rwx bits all off - it isn't particularly useful, but you can do it.

Conceivably there might be a scenario where you don't want the owner to accidentally execute the setuid file. This doesn't prevent group class users and other users executing it, assuming the other execute bits are on. But it would be an obscure case.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need root to setuid bit? allasso Linux - General 5 12-03-2008 01:51 AM
How to execute 64-bit divide opertion in linux kernel v2.4.18? shiner_chen Linux - Kernel 0 08-06-2008 03:00 AM
Which program should I use to execute a shell script In Ubuntu 8.04 64-bit? joel.breger Linux - Newbie 4 05-26-2008 10:29 AM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 05:15 PM
How can I use the setuid bit on a file in Debian HGeneAnthony Linux - General 7 10-25-2006 06:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:56 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