Re: How to enable setuid scripts in Linux?



bianying@xxxxxxxxx wrote:

All,

I am having trouble to port some scripts (written in ksh) from Solaris
to Linux, because Linux
disables setuid scripts on purpose but all my scripts rely on this
feature!

Poorly written then.


I understand that there are security holes with setuid scripts, but
that is not my concern.

It should be. Poor security practices on your part can cause problems for
EVERYONE on the net. If you get in bad habits and don't learn the correct
way to do what you want, then those habits will translate to servers and
system where it DOES matter.


I wonder, is there any way to enable the setuid scripts? Can I do it by
re-compiling the kernel, turning some flag on?

Learn to use suid correctly. You should be able to figure out how to set the
permissions and the suid on the binary commands that are run by the script
to accomplish what you want even if you


--
B.Y.

--

Dan C. Gets caught apparently Plagiarizing:
Message ID: <3ab7l3-tnl.ln1@xxxxxxxxxxxxxxxxxxxx>
Yeah, this is the type critical of me!
.



Relevant Pages