Subject: Re: weird setuid behavior
To: NetBSD Kernel Technical Discussion List <tech-kern@NetBSD.ORG>
From: Niels Provos <provos@citi.umich.edu>
List: tech-kern
Date: 01/21/2004 02:43:09
On Wed, Jan 21, 2004 at 02:40:39AM -0500, Greg A. Woods wrote:
> What is your starting condition (euid, ruid, etc.)?  Was the process
> started from a set-ID binary file?

Either,

$ sudo ./application

or
 
$ sudo su -
# /somewhere/application

So, euid, ruid, uid == 0 in the latter case.

Niels.