from Dave Anselmi:

"R. Quenett" wrote:

" > And, it seems, scripts are not supposed to be able
" > to run suid root.  I know all of this would be dead simple if I had
" > some real knowledge of linux, but I don't, so I have to just muddle
" > along and learn as I go.  Anyway, it's working well enough now, at
" > least for the moment.
" 
" Scripts can be suid just as well as any executable file.  Running any

That's one of the _wonderful_ things I'm learning about linux.  One 
must _R_TF*, but should only actually believe at one's peril.<g>

I don't quarrel with what you say, but take a look at Lesson 7 at 
http://www.samag.com/documents/s=1149/sam0106a/0106a.htm which says: 
'Because of these problems, some systems (e.g., Linux) won't honor 
SUID on shell scripts.'  I'm sure I've seen this in other places in 
various docs, too.  What the rock bottom truth is, I haven't a clue.  
Also, the neton/off script wouldn't run the ifconfig statements when 
set suid root, either.  I just presumed I hadn't done it right (that 
being usually a very safe assumption:).

" I'd be happy to comment on the full script, if you're interested and if you
" get back to fiddling with it (no need to fix something that works).

Thankyou for this, I do appreciate; but for now, as you say, it works.

" Perhaps that's an off-list discussion.

I think so.

R

-- "In action, be primitive; in foresight, a strategist." -Rene Char
_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to