Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


View Poll Results: Can Sudo Activity Peformed by a Shared Account (after a su) be Associated with a Unique User ID
Yes 0 0%
No 3 100.00%
Not without a great deal of diffuculty 0 0%
Try a different Approach 1 33.33%
Multiple Choice Poll. Voters: 3. You may not vote on this poll

  Search this Thread
Old 05-04-2014, 07:58 AM   #16
Senior Member
Registered: Apr 2005
Distribution: Ubuntu, Devuan, OpenBSD
Posts: 2,363
Blog Entries: 3

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046

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.
Old 05-04-2014, 09:10 AM   #17
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,704

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
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.
Old 05-15-2014, 04:29 PM   #18
DJ Shaji
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 517
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I can't make partial sudo account work on ubuntu server 10.04 Highjo Linux - Server 3 03-04-2014 09:12 AM
Any detailed instruction to remote debug shared library in QtCreator in Linux ? 5883 Programming 7 12-24-2013 01:12 PM
howto log usage of shared account (root account) after `sudo su -` drManhattan Linux - Server 5 09-30-2011 07:48 AM
Can't use sudo, only account that's not root is not a sudo'ers [Ubuntu 9.10] randyriver10 Linux - Desktop 1 01-09-2010 07:56 PM
running mail server and loging other users in same time WannaLearnLinux Linux - Newbie 4 04-28-2006 05:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration