*BSD News Article 33963


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!sgiblab!sgigate.sgi.com!rutgers!newsserver.jvnc.net!yale.edu!spool.mu.edu!agate!darkstar.UCSC.EDU!news.hal.COM!olivea!charnel.ecst.csuchico.edu!xmission!u.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (Terry Lambert)
Newsgroups: comp.unix.bsd
Subject: Re: User Structure
Date: 3 Aug 1994 04:24:58 GMT
Organization: Weber State University, Ogden, UT
Lines: 16
Message-ID: <31n66q$9te@u.cc.utah.edu>
References: <giDc6aO00VpDM5bFEb@andrew.cmu.edu>
NNTP-Posting-Host: cs.weber.edu

In article <giDc6aO00VpDM5bFEb@andrew.cmu.edu> Scott Eric Colville <sc5i+@andrew.cmu.edu> writes:
] Within a normal function, how can I get access to the user structure for
] the current process?

Through the functional interfaces in section 2 of the manual, like getpid(),
getcwd(), getuid(), etc.

Any "access" above and beyond that would allow you to alter your UID/GID
to that of "root".


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.