Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!mips!daver!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.unix.programmer Subject: Re: getting the current working directory Message-ID: <2794A063.3188@tct.uucp> Date: 16 Jan 91 18:50:11 GMT References: <5195@idunno.Princeton.EDU> <3141@polari.UUCP> <5262@auspex.auspex.com> Distribution: usa Organization: Teltronics/TCT, Sarasota, FL Lines: 14 According to guy@auspex.auspex.com (Guy Harris): >Note also that in the presence of various distributed file systems even >set-UID "root" may not be enough; both NFS and RFS servers may map the >root user-ID to some unprivileged user ID. Just to chime in: In such environments, set-UID "root" programs have less priviledge than the programs that call them. I just use Doug Gwyn's getpwd() implementation. It saves me a lot of time and trouble. -- Chip Salzenberg at Teltronics/TCT , "If Usenet exists, then what is its mailing address?" -- me "c/o The Daily Planet, Metropolis." -- Jeff Daiell