Privileged Bash Shell Execution.

     Hi,
      How can one execute a set UID shell script under linux? When ever I
do it as I would under SunOS it just runs as the original user.

      E.g.

cat killer gives:

#!/bin/sh
kill $1
exit 0

ls -lag killer gives:

-rwsr-xr-x      root      dev    ..... killer

      Killer should kill off any specified process, but instead gives a
`no privileges' message instead.

      Any ideas?

      Thanks, Tony.

LVL 1
aecooperAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
df020797Connect With a Mentor Commented:
Shells cant be setuid:ed but they can call a C program whois setuid:ed, or why not write a C prog only?

0
All Courses

From novice to tech pro — start learning today.