Re: who called sudo ?



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


--

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


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: who called sudo ?
    ... I am writing an install script that needs to be root, ... It needs to know who was the user that executed 'sudo install.py' ... ... If it is an install script there is no user identified so sudo can't ... Anyone, I repeat _anyone_, that listens to a word Karl says would be well ...
    (Ubuntu)
  • Re: who called sudo ?
    ... I am writing an install script that needs to be root, ... It needs to know who was the user that executed 'sudo install.py' ... ... If it is an install script there is no user identified so sudo can't ...
    (Ubuntu)
  • Re: who called sudo ?
    ... > I am writing an install script that needs to be root, ... > It needs to know who was the user that executed 'sudo install.py' ... ...
    (Ubuntu)
  • Re: who called sudo ?
    ... I am writing an install script that needs to be root, ... It needs to know who was the user that executed 'sudo install.py' ... ...
    (Ubuntu)
  • who called sudo ?
    ... I am writing an install script that needs to be root, ... It needs to know who was the user that executed 'sudo install.py' ... ...
    (Ubuntu)