Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Privileged Bash Shell Execution.

Posted on 1997-08-30
1
Medium Priority
?
346 Views
Last Modified: 2012-06-27
     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.

0
Comment
Question by:aecooper
1 Comment
 
LVL 2

Accepted Solution

by:
df020797 earned 100 total points
ID: 1626636
Shells cant be setuid:ed but they can call a C program whois setuid:ed, or why not write a C prog only?

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question