Solved

Privileged Bash Shell Execution.

Posted on 1997-08-30
1
338 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 50 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS EC2 Linux 1 54
Ubuntu 16.04 AMD video card driver issues 20 328
Linux as a middle box 7 62
gdb doesn't stop on breakpoint 2 48
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,…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now