Path: utzoo!utgpu!watserv1!watmath!att!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.questions Subject: Re: Problem with getuid() -- same as geteuid()?! Message-ID: <1990Feb8.171943.5162@chinet.chi.il.us> Date: 8 Feb 90 17:19:43 GMT References: <1836@clyde.concordia.ca> <1837@clyde.concordia.ca> Reply-To: les@chinet.chi.il.us (Leslie Mikesell) Organization: Chinet - Chicago Public Access UNIX Lines: 18 In article <1837@clyde.concordia.ca> smw@maxwell.Concordia.CA ( Steven Winikoff ) writes: >My problem is that there are several people at our site who are legitimately >able to su root, working on different projects at the same time (perhaps >that's a bad idea, but it's not under my control). In any case, the idea >is to find some way to identify our printed output, from within a local >customized print program. Since it's not really a security issue, why don't you just use the environment variable LOGNAME? If it's good enough for SysV mail to identify the sender perhaps it will work for you as well. You might want to designate another variable to be checked first so you can type something like: PRID=some_else lp file when you want a print job delivered to some else. Les Mikesell les@chinet.chi.il.us