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.iehttp://devnull.redbrick.dcu.ie/
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!