In article <MeV8_XO00WBKQ34Uo8@andrew.cmu.edu> fl0p+@andrew.cmu.edu (Frank T Lofaro) writes:I don't know, what POSIX has to say about it, but Linux' nosuid acts like IRIX' (IRIX claims to comply with POSIX and I've found its behaviour very reasonable): If your euid == 0 (you're root): perform the suid/sgid operation. (Reason: you can't gain power by this, but you might want to alter your uid/gid, e.g. if your /bin/passwd is sgid shadow, you don't want to run it with egid != shadow.) If your euid != 0 and you already have the privileges you'd get by the suid/sgid bits (to say: you're already that user or you're already in that group), the exec is performed. If your euid != 0 and you'd gain anything from the suid/sgid bits, exec is refused with an error EPERM. If you really insist in running that program, you can make a copy of it and run that, if it's readable. It's better to get the error before running the program than to have it fail in mysterious ways. - Werner -- _________________________________________________________________________ / Werner Almesberger, ETH Zuerich, CH almesber@nessie.cs.id.ethz.ch / / IFW A44 Tel. +41 1 254 7213 almesberger@rzvax.ethz.ch / /_BITNET:_ALMESBER@CZHETH5A__HEPNET/CHADNET:_[20579::]57414::ALMESBERGER_/
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Ingo Molnar | Re: [BUG] New Kernel Bugs |
| Tony Lindgren | [PATCH 42/90] ARM: OMAP: Tabify mux.c |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Martin Langhoff | Re: pack operation is thrashing my server |
| Andreas Ericsson | Re: VCS comparison table |
| Ingo Molnar | [OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commi... |
| Nicolas Vilz 'niv' | git + ssh + key authentication feature-request |
| Richard Stallman | Real men don't attack straw men |
| Darren Spruell | Re: About Xen: maybe a reiterative question but .. |
| Nick Holland | Re: 4.1 on ALIX.1C - recommendations? |
| Lord Sporkton | Re: low-MHz server |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Mark Lord | Re: 2.6.25-rc8: FTP transfer errors |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Brandeburg, Jesse | RE: e1000 full-duplex TCP performance well below wire speed |
