Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 1997 10:06:41 +0300
From:      Nadav Eiron <nadav@barcode.co.il>
To:        Tim Stoddard <tims@dcs.state.ar.us>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: suid question
Message-ID:  <33D45C01.1F76@barcode.co.il>
References:  <Pine.HPP.3.96.970721135343.2022A-100000@dcs.state.ar.us>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim Stoddard wrote:
> 
> I have a need to allow someone the ability to reload a daemon.  I have
> tried to write a script with the suid id bit set and owner set to root,
> but the script is always executed with the uid of the person who executed
> it instead of root.  I am at a loss as to what else would need to be set.
> 
> Thanks in advance,
> Tim Stoddard

Normally, shell scripts can't be setuid. However, take a look at sudo
(it's in the ports) it might do just what you need.

Nadav



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33D45C01.1F76>