Oskar Liljeblad <[EMAIL PROTECTED]> writes:
OL> Aren't setuid shell scripts supposed to be executed with EUID=1?
OL> They aren't on my system. I can't see what's wrong here...
setuid-root (and probably setuid-anything) scripts run with the uid of
the caller; they ignore the setuid bit.
OL> Some
Aren't setuid shell scripts supposed to be executed with EUID=1?
They aren't on my system. I can't see what's wrong here...
oskar:~$ id
uid=1000(usel) gid=1000(usel) groups=1000(usel)
oskar:~$ cat /usr/local/bin/suidtest
#!/bin/sh
echo uid=$UID euid=$EUID
oskar:~$ ls -l /usr/local/bin/suidtest
-rw
2 matches
Mail list logo