Re: RedHat Question

From: Roman Podshivalov <>
Date: Thu, 8 May 2008 09:18:46 -0400
Message-ID: <>


To run it with root privileges you have to have a SUID bit set and use setuid(geteuid) routine in your code. But If memory serves me correctly if you set it first before chown your script to root it'll disappear (just to prevent such a security hole). And once script belongs to root you cannot set SUID bit on it anyway 8-)


On 5/7/08, Jared Still <> wrote:
> On Tue, May 6, 2008 at 9:02 AM, Niall Litchfield <
>> wrote:
>> Isn't this for both security and space management (quota) issues.
> Allowing users to chown their files is definitely a security issue.
> Imagine if you could write a script, then 'chown root', and run
> it with root privileges?
> Re the quota issues, I hadn't thought of that one, but users could easily
> bypass
> quotas limits with chown.
> --
> Jared Still
> Certifiable Oracle DBA and Part Time Perl Evangelist

Received on Thu May 08 2008 - 08:18:46 CDT

Original text of this message