Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-04-2009, 07:16 AM   #1
Registered: Sep 2009
Distribution: maggie 4 and 5
Posts: 35

Rep: Reputation: 0
is suid disabled from running all scripts or just from running them as root

Mandriva 2009 spring

is suid disabled from running all home made bash scripts or just from running them as root or:

Who would know for sure.

I googled several combinations of Mandriva Linux how-to suid disabled setUID etc... so far all I found was "many distributions are disabling suid for security reasons" nothing specific.


sorry if wrong forum. If I wind up having to learn about sudoers what forum do you think questions about it should be posted in?
Old 09-04-2009, 01:09 PM   #2
Senior Member
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
It not so much that it's "disabled", it's that a script is actually interpreted by a binary that isn't setuid. When executing a script, the OS executes the interpreter specified on the first line and assumes it can pass the entire command line as its arguments. The interpreter then opens and executes the script. For a script to actually be setuid, the interpreter would have to be setuid-root, it would have to know to check the flags and ownership of the script, change users to root, and lastly change users to those specified for the script file.
Kevin Barry

Last edited by ta0kira; 09-04-2009 at 01:19 PM.
Old 09-05-2009, 03:57 AM   #3
Registered: Sep 2009
Distribution: maggie 4 and 5
Posts: 35

Original Poster
Rep: Reputation: 0
Thanks Kevin,
Sounds like I may as well resign myself to figuring out sudoers, if what I've been reading jives with what you've said then stuff like pearl still does suid. I don't think I want to mess with that right now.

Have a good one,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i pass a password to scp prior to running it in the background? keys disabled AlexDBA Programming 4 05-01-2009 01:05 PM
disabled SUID hackintosh Linux - Security 5 10-28-2007 06:53 PM
SUID problem running cron jobs? mitchloft Fedora 4 03-24-2005 01:30 PM
Running scripts crash_zero Mandriva 5 04-19-2004 03:23 PM
Help Running Scripts josefalero Linux - Newbie 2 11-14-2002 05:36 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration