Problem with getuid() -- same as geteuid()?!

Leslie Mikesell les at chinet.chi.il.us
Fri Feb 9 04:19:43 AEST 1990


In article <1837 at clyde.concordia.ca> smw at 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 at chinet.chi.il.us



More information about the Comp.unix.questions mailing list