Re: How to enable setuid scripts in Linux?



ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin) wrote in
news:slrnea5o24.p6m.ibuprofin@xxxxxxxxxxxxxxxxx:

On 28 Jun 2006, in the Usenet newsgroup comp.os.linux.setup, in
article <Xns97EFB827EFCB0chucknilcar@xxxxxxxxxxx>, chuckcar wrote:

bianying@xxxxxxxxx wrote

I am having trouble to port some scripts (written in ksh) from
Solaris to Linux, because Linux
disables setuid scripts on purpose

I guess you missed that part of the sentence.

You generally turn the group/user execute bit on along with chowning
it to that user/group.

which is great, but why don't you try that on a script. As the O/P
noted, the Linux kernel ignores SUID and SGID scripts.

If you don't know what chown and chmod are, then you are in over your
head and need to read the manual pages for both.

You may also need to do some reading, or at least try what you suggest
before posting it.

Old guy


Funny. I have created my own scripts changed the to execute and they
work fine. And not just as root either - I have one user called chuck -
groups users and another called games - group games the former has run
at least two scripts which I wrote owned by him and his group and set to
execute only by him. What was the point now?

--
(setq (chuck nil) car(chuck) )
.



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: 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)
  • Re: sco-list: Re: SCO drop loyal resellers...
    ... I haven't had a lot of stability problems with Linux since we started ... Caldera had its ... we've always done extensive security analysis and hardening on ... breaking lots of shell scripts). ...
    (comp.unix.sco.misc)