Solved

Privileged Bash Shell Execution.

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

706 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

22 Experts available now in Live!

Get 1:1 Help Now