*BSD News Article 95410


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news.apfel.de!fu-berlin.de!news-ber1.dfn.de!news-ham1.dfn.de!news-han1.dfn.de!news-koe1.dfn.de!news.ruhr-uni-bochum.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!not-for-mail
From: uk1o@rzstud1.rz.uni-karlsruhe.de (Felix Schroeter)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: setuid()
Date: 15 May 1997 17:55:16 +0200
Organization: University of Karlsruhe, Germany
Lines: 13
Message-ID: <5lfbl4$oli@rzstud1.rz.uni-karlsruhe.de>
References: <5knifc$k13@ui-gate.utell.co.uk> <87wwpc788s.fsf@erlenstar.demon.co.uk> <5kq1nb$rjn@rzstud2.rz.uni-karlsruhe.de> <5kq5cb$j4@ui-gate.utell.co.uk>
NNTP-Posting-Host: rzstud1.rz.uni-karlsruhe.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-User: uk1o
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40956

Hello!

In article <5kq5cb$j4@ui-gate.utell.co.uk>,
Brian Somers <brian@awfulhak.org, brian@utell.co.uk> wrote:
>[... Changing the real UID with setreuid(...) ...]

>Not true - not in FreeBSD-2.2 (as of Apr 25) anyway.
>The above example works for me.

I stand corrected. In OpenBSD you can't change the real UID with setreuid(),
in FreeBSD you can. In BSD/OS 2.1 you can't. In NetBSD, I don't know.

Regards, Felix.