who called sudo ?

Karl Larsen k5di at zianet.com
Sat Mar 15 14:29:07 UTC 2008

dave selby wrote:
> Hi all,
> I am writing an install script that needs to be root, its started with
> sudo install.py
> It needs to know who was the user that executed 'sudo install.py' ...
> any ideas how I get that info from the shell or sudo command ?
> Dave
    If it is an install script there is no user identified so sudo can't 
work. You need to figure out what your going to use this for and make 
sure it can be used.



	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
   PGP 4208 4D6E 595F 22B9 FF1C  ECB6 4A3C 2C54 FE23 53A7

More information about the ubuntu-users mailing list