Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 2002 17:17:49 +0100
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        Kirk Bailey <idiot1@netzero.net>
Cc:        "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz>, david <ph1@cogeco.ca>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Run as owner
Message-ID:  <20021226161748.GE348@freepuppy.bellavista.cz>
In-Reply-To: <3E0B2A1C.1080503@netzero.net>
References:  <3DE83EE1.60400@netzero.net> <200211301028.10083.ph1@cogeco.ca> <05db01c29890$6befb7a0$fa00a8c0@DaleCoportable> <3E0B2A1C.1080503@netzero.net>

next in thread | previous in thread | raw e-mail | index | archive | help

                                  ___________________
                         /|  /|  |                   |
                         ||__||  |      Please do    |
                        /   O O\__         NOT       |
                       /          \      toppost     |
                      /      \     \_________________|
                     /   _    \     \      ||
                    /    |\____\     \     ||
                   /     | | | |\____/     ||
                  /       \|_|_|/   |    __||
                 /  /  \            |____| ||
                /   |   | /|        |      --|
                |   |   |//         |____  --|
         * _    |  |_|_|_|          |     \-/
      *-- _--\ _ \     //           |
        /  _     \\ _ //   |        /
      *  /   \_ /- | -     |       |
        *      ___ c_c_c_C/ \C_c_c_c____________



# idiot1@netzero.net / 2002-12-26 11:11:08 -0500:
> Kevin D. Kinsey, DaleCo, S.P. wrote:
> >From: "david" <ph1@cogeco.ca>
> >Subject: Re: Run as owner
> >
> >On Friday 29 November 2002 23:30, Kirk Bailey wrote:
> >>OK, man says to get a script to run as the owner, turn on the 4000
> >>bit.
> >
> >>OK, I did. No such luck, it continues to run as the apache identity
> >>'nobody'.
> >
> >david:  I'm just wondering, why is this a problem?
> >
> >I believe it's 'cuz he wants the script to build or destroy
> >/etc/mail/aliases......check out some earlier posts under
> >different thread names, perhaps.
>
> Nope, I wrote a script that simply wran ID as a command and printed the 
> result, and ran it as my id of howlermo, although it was owned by root. It 
> wran as howlermo. I then ran it as grumpy. It ran as grumpy. I then ran it 
> as su, it ran as su. Permission was 755, so anyone could run it, and w 
> hoever ran it, it ran as; it assumes the id of the person running it. 
> Hmmm...

    scripts cannot be set{u,g}id

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021226161748.GE348>