LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-04-2009, 06:16 AM   #1
monsteriname
Member
 
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.

Thanks,

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, 12:09 PM   #2
ta0kira
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 12:19 PM.
 
Old 09-05-2009, 02:57 AM   #3
monsteriname
Member
 
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,
 
  


Reply



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 12:05 PM
disabled SUID hackintosh Linux - Security 5 10-28-2007 05:53 PM
SUID problem running cron jobs? mitchloft Fedora 4 03-24-2005 12:30 PM
Running scripts crash_zero Mandriva 5 04-19-2004 02:23 PM
Help Running Scripts josefalero Linux - Newbie 2 11-14-2002 04:36 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:22 AM.

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