[wplug] SUID - I just don't get it
James O'Kane
jo2y at midnightlinux.com
Sat Apr 24 17:33:28 EDT 2004
On Sat, 24 Apr 2004, Robert E. Coutch wrote:
> I wrote a script and set file set ownership to root, then SUID.
> I run the script as a user and I see that the script executes with user's ID
> and permissions.
If it's a perl script, you need a suid version of perl. I can't find a
good url explaining this at the moment. I'm not sure at the moment about
shell scripts.
> -rwSr--r-- 1 root root a.out
> (Yes, I removed the size and timestamp)
>
> What's the difference when I use chmod u+xs and then see:
> -rwsr--r-- 1 root root a.out
S means that it is suid but not executable. (not very useful)
s means suid and executable.
-james
More information about the wplug
mailing list