Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2013 15:57:24 -0600 (CST)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        freebsd-questions@freebsd.org, martin@dc.cis.okstate.edu
Subject:   Re: Setuid binaries and File Ownerships in FreeBSD9.0
Message-ID:  <201301232157.r0NLvOir062346@mail.r-bonomi.com>
In-Reply-To: <201301232026.r0NKQGqF070301@x.it.okstate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

> From: Martin McCormick <martin@dc.cis.okstate.edu>
> To: FreeBSD Questions <freebsd-questions@freebsd.org>
> Subject: Setuid binaries and File Ownerships in FreeBSD9.0
> Date: Wed, 23 Jan 2013 14:26:16 -0600
>

[[..  sneck  ..]]

> 	When the application first runs, it gets the UID and GID
> of the user and uses 
>
> setuid(heruid); and setgid(hergid); to temporarily downgrade and
> those files are owned by the right user but setuid(0); doesn't
> appear to upgrade back to root.
>
> 	Is there any other strategy that gets one back to root
> short of using chown and then a system call and never
> downgrading privilege?

man setEuid





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301232157.r0NLvOir062346>