Subject: Re: operator shutdowns and su
To: Julio M. Merino Vidal <jmmv84@gmail.com>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-userlevel
Date: 05/13/2006 20:14:01
On Sat, 13 May 2006, Hubert Feyrer wrote:
>> From testing, it seems that script is indeed ran under the UID of the user
> running shutdown(8), not under UID 0. I wonder if some set(e?)uid(0) is
> missing in shutdown.c::dorcshutdown()?
actually it gets run with UID=user,EUID=0, and putting something like 'su
user -c id' brought the right thing without asking for a password.
How to reproduce the problem?
- Hubert