Re: How to enable setuid scripts in Linux?




<bianying@xxxxxxxxx> wrote in message
news:1151397533.152658.284240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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!

Heh. Heh-heh-heh-heh. I'm sorry for your need to do the work, but honestly,
you get what you deserve for doing that.

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

See above.

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

Conceivable. I've never even considered it, but you're welcome to go looking
for it. Like trying to drive without brake lights, it just seems so
hazardous that few people will encourage you to do it.

You should b e able use "sudo" to allow any or all users to execute those
scripts as root, instead of making them suid.


.



Relevant Pages

  • Re: Will Linux become as vulnerable as MS ??
    ... >> Linux, each distro is a little different, and even within the distro, ... > Then anyone with a basic understanding of shell scripts could write one ... >> Apache, and despite having several rather nasty holes in Apache, or it's ... >> the vile record that IIS holds in spreading malware. ...
    (comp.os.linux.security)
  • Re: An end to tweaking?
    ... > tap dance with ansi.sys commands and debug scripts. ... > One thing I don't like about Linux is the Unix command names. ... > DOS command names were easier to memorize. ...
    (comp.os.linux.misc)
  • Re: Sound files on bootup; IMessenger for SuSE
    ... one the more frustrating aspects of learning Linux is finding the ... Another method is to use 'apropos' with a word or term for which you'd ... the startup scripts are in: ... with the different runlevels having links to the scripts to run on ...
    (alt.os.linux.suse)
  • Re: How to enable setuid scripts in Linux?
    ... to Linux, because Linux ... disables setuid scripts on purpose ... the Linux kernel ignores SUID and SGID scripts. ...
    (comp.os.linux.setup)
  • Re: Does Linux not allow use of chmod u+s
    ... To execute scripts with root privaliges as a user you need to ... ]If Linux does not allow that, how do suid and super allow it? ... ]int main ... how buffer overflow attacks are born. ...
    (comp.os.linux.security)