Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.reston.ans.net!blackbush.xlink.net!zib-berlin.de!newsserv.cs.uni-magdeburg.de!dali.cs.uni-magdeburg.de!jesse From: jesse@csmd.cs.UNI-Magdeburg.DE (Roland Jesse) Newsgroups: comp.unix.bsd.freebsd.misc Subject: (getuid() && geteuid()) Date: 9 Feb 1996 12:21:24 GMT Organization: Univ. of Magdeburg, CS Dept, Germany Lines: 19 Message-ID: <4ffe84$ed1@dali.cs.uni-magdeburg.de> NNTP-Posting-Host: csmd49.cs.uni-magdeburg.de X-Newsreader: TIN [version 1.2 PL2] How may I handle the bug in getuid() and geteuid() that both are always successful ? I want to install a little programm to get root-permissions for executing one command. To check the startup permissions there is a line like: if (geteuid() && getuid()) (void) exit(1); This works for SunOS 4.1.3 but doesn't for FreeBSD 2.1. Are there _any_ other ways to go around ? Thanks for any help. -- Roland (rj,-) Jesse, stud.rer.nat. et phil. URL: http://www.cs.uni-magdeburg.de/~jesse/ E-Mail: jesse@csmd.cs.uni-magdeburg.de - pgp encrypted mail preferred -