?
Solved

Privileged Bash Shell Execution.

Posted on 1997-08-30
1
Medium Priority
?
343 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 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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 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…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

762 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