[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: suid script



On Thu, 3 Dec 1998, Joey Hess wrote:

> > It's in bash (which is also sh on most linux systems), a pain in the a**,
> > I mean, "feature".  I don't know of any other shells that do this.
> 
> No, it's in the kernel. Any executable that starts with "#!" does this,
> because the kernel is repsonsible for that magic thing working.

Dang, looks like you are right Joey, at least I can't get a counter
example working.  I have been forced to write csh scripts on linux that
are run by suid programs because bash will drop it's privleges to the
real user id. So, at least is some aspects, bash is worse than others.
Any idea why the kernel does this (if it really does, I'm still not sure
of it)? 

Thanks,
Brandon

+---                                                              ---+
| Brandon Mitchell * bhmit1@mail.wm.edu * http://bhmit1.home.ml.org/ |
|  Sometimes you have to release software with bugs. - MS Recruiter  |


Reply to: