LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check other users sudo
#5
(02-13-2016, 12:08 PM)liamjake05 link Wrote:Anybody knows how to check if other users not in the sudo group are trying to gain access. When my brother which is not in the sudo group runs a sudo command in  terminal it will say that it will be reported to me. An an example of what it does is in a picture below. Anybody knows how to check?

It's much more ideal to run

Code:
sudo visudo

and add the line

Code:
Defaults    logfile=/var/log/sudo.log


This will only show sudo issues, and not garble it up with other system info. This is all ran as the "admin" of course. To view the log, you'll need to have access permison (you might wanna look into groups and permissions on your own).


To do this just run


Code:
sudo cat /var/log/sudo.log


Again with the "admin" account.






That all aside, using the auth.log file also shows you login attempts and other info you may want to check often. You do not need to set a special path for sudo. Up to you in the end.
The Truth is out there.
Be sure to check the Manual out and always report Bugs or feature requests.
[Image: psCXIcR.png]
Reply


Messages In This Thread
Check other users sudo - by liamjake05 - 02-13-2016, 12:08 PM
Re: Check other users sudo - by torreydale - 02-13-2016, 02:10 PM
Re: Check other users sudo - by liamjake05 - 02-13-2016, 05:19 PM
Re: Check other users sudo - by Wirezfree - 02-13-2016, 06:15 PM
Re: Check other users sudo - by shaggytwodope - 02-16-2016, 03:02 PM
Re: Check other users sudo - by liamjake05 - 02-16-2016, 04:49 PM
Re: Check other users sudo - by shaggytwodope - 02-16-2016, 05:11 PM
Re: Check other users sudo - by liamjake05 - 02-16-2016, 05:40 PM
Re: Check other users sudo - by shaggytwodope - 02-16-2016, 06:15 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)