LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] setuid

[ILUG] setuid

Colm Mac Cárthaigh colmmacc at redbrick.dcu.ie
Sat Jul 28 23:33:05 IST 2001


On Sat, Jul 28, 2001 at 03:31:54PM -0700, Paul O'Neil wrote:
> If I start a program and says not running as root or setuid, what exactly
> does this mean. 

It means the suid but isnt set on the binary, the suid bit
makes a process run with the uid of the owner of the file
rather than the caller of the process.

a handy but often deadly way of temporarily giving a user 
higher priveledges than they normally have to do a specific
task.

>Do I need to do a chmod on the program so I can use it as if
> root executed it.
> 

chmod u+s [filename]

or 

chmod 4755 [filename]

will set the suid bit, if you can avoid having to do this, do.
If noone apart from root will be running it, or if it isnt
needed by ordinary users dont set the bit.

-- 
------------------------------------------------------------
colmmacc at redbrick.dcu.ie

http://devnull.redbrick.dcu.ie/




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell