LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Reply
  Search this Thread
Old 05-04-2014, 07:58 AM   #16
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,293
Blog Entries: 3

Rep: Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718

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
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 AM.

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