Solved

Privileged Bash Shell Execution.

Posted on 1997-08-30
1
340 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CENTOS DHCP Server / PXE/TFTP 14 216
linux SFTP 8 78
HOw To Install Docker on VMware Workstation 19 338
Check for Linux process in script 7 67
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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