LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Detailed Loging As Users sudo to Shared Account and continue to work (https://www.linuxquestions.org/questions/linux-newbie-8/detailed-loging-as-users-sudo-to-shared-account-and-continue-to-work-4175503268/)

Turbocapitalist 05-04-2014 07:58 AM

Why do you have step #2? It seems unnecessary and introduces the problem of making it hard to audit. There is probably a way around it.

jpollard 05-04-2014 09:10 AM

only su or sudo... note - it is a shared account, the only way to know which user is logging in is from the logs of either su or sudo.

Now after they are logged in, everything is done in common.

DJ Shaji 05-15-2014 04:29 PM

You could just patch sudo itself to log to a file the uid from which it was called. You coud do it in a few lines of code. Even better, make a script called ssudo or something that first logs the uid and then calls the real sudo.


All times are GMT -5. The time now is 02:59 AM.