It might be worth reminding people that some shells (notably bash) will
check if EUID != UID and reset the EUID to the UID on startup, unless a
particular option (-p on bash) is given. IOW, testing the above with a
setuid shell script won't work unless its startup line is "#! /bin/bash -p"
(or /bin/sh in place of /bin/bash).
-- brandon s. allbery os/2,linux,solaris,perl allbery@kf8nh.apk.net system administrator kthkrb,heimdal,gnome,rt allbery@ece.cmu.edu carnegie mellon / electrical and computer engineering kf8nh We are Linux. Resistance is an indication that you missed the point.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/