Re: RedHat Question
Date: Thu, 8 May 2008 09:18:46 -0400
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 <jkstill_at_gmail.com> wrote:
> On Tue, May 6, 2008 at 9:02 AM, Niall Litchfield <
> niall.litchfield_at_gmail.com> 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 myscript.sh', and run
> it with root privileges?
> Re the quota issues, I hadn't thought of that one, but users could easily
> quotas limits with chown.
> Jared Still
> Certifiable Oracle DBA and Part Time Perl Evangelist