Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Christoph Zens <e9126506@student.tuwien.ac.at>
To: axp-list@redhat.com
Subject: Re: SUID scripts?
Date: Sat, 8 Aug 1998 12:55:54 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.3.95.980808125019.1116A-100000@alpha.home.at> (raw)
In-Reply-To: <19980807112938.1678.qmail@headwall.maine.com>


> > Instead of that it is much simpler to have a compiled "wrapper"
> > program which can call your shell script, avoiding various race
> > conditions, and execute it under id you want.
> 
> If you are going to wrap it and run it suid, you are probably better
> off doing it in perl.

Ever tried to use "sudo" ?

SYNOPSIS
       sudo -V | -h | -l | -v | -k | -s | -H | [ -b ] | [ -p
       prompt ] [ -u username/#uid] command

DESCRIPTION
       sudo allows a permitted user to execute a command as the
       superuser (real and effective uid and gid are set to 0 and
       root's group as set in the passwd file respectively).

       sudo determines who is an authorized user by consulting
       the file /etc/sudoers.  By giving sudo the -v flag a user
       can update the time stamp without running a command.  The
       password prompt itself will also time out if the password
       is not entered with N minutes (again, this is defined at
       installation time and defaults to 5 minutes).

And as far as other IDs than root are concerned:

       -u  The -u (user) option causes sudo to run the specified
           command as a user other than root.  To specify a uid
           instead of a username, use "#uid".

I use it to allow SOME users to execute a certain shell-script as root.

--
    _
 _ //
 \X/  Christoph Zens <e9126506@student.tuwien.ac.at>



      reply	other threads:[~1998-08-08 10:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-06 18:42 SUID scripts? Christopher Curtis
1998-08-06 18:55 ` Jeff Sturm
1998-08-07  0:23   ` Mike "Ford" Ditto
1998-08-07  4:03     ` Michal Jaegermann
1998-08-07 11:29       ` cfm
1998-08-08 10:55         ` Christoph Zens [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox