Mailinglist Archive: opensuse (3644 mails)

< Previous Next >
Re: [SLE] Shutdown as SU (resent)
  • From: Dave Smith <Dave.Smith@xxxxxx>
  • Date: Thu, 7 Mar 2002 13:30:12 +0000
  • Message-id: <20020307133012.GP8191@xxxxxxxxxxxxxx>
On Thu, Mar 07, 2002 at 02:17:32PM +0100, wolfi_z@xxxxxxxxx wrote:
On Thu, 2002-03-07 at 13:55, Johan Ronström wrote:
Is it possible for other users to shutdown (without su:ing). Can root give
the
permission to use some commands (like shutdown)to other users, without
giving
it other permissions.

On the commandline, link /sbin/shutdown to /bin/shutdown and make it run
as root for everybody:

# ln -s /sbin/shutdown /bin/shutdown
# chmod 4711 /bin/shutdown

I think that the last time I looked at this, the shutdown binary checks the
actual UID (rather than the EUID) to make sure that it really is root.

Take a look at the 'sudo' package.

--
David Smith Tel: +44 (0)1454 462380 (direct)
STMicroelectronics Fax: +44 (0)1454 617910
1000 Aztec West TINA (ST only): (065) 2380
Almondsbury Home: 01454 616963
BRISTOL Mobile: 07932 642724
BS32 4SQ Work Email: Dave.Smith@xxxxxx
Home Email: David.Smith@xxxxxxxxxxxxxxxxxxxx

< Previous Next >
Follow Ups
References