![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sudo, or not sudo: that is the question | iBot | UNIX and Linux RSS News | 1 | 02-07-2008 10:40 AM |
| Logging commands and output | soliberus | SUN Solaris | 3 | 10-25-2007 03:30 AM |
| code that reads commands from the standard i/p and executes the commands | Phrozen Smoke | High Level Programming | 4 | 01-21-2007 11:06 PM |
| sudo logging + NFS hang? | neked | UNIX for Dummies Questions & Answers | 1 | 03-14-2005 06:48 AM |
| Sudo | reddyb | UNIX for Dummies Questions & Answers | 1 | 08-23-2001 01:15 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi there,
It might seem tricky, I confess. We use sudo to allow people to initiate priviledged commands (but not all commands) on our Unix systems. To by pass this, some people initiate the sudo su - command ; The main issue is to 'know' what those people do when they gain root access. Is there a way to have a log of all commands done by a user whent they have gained root access? This way, we could at least know what they do. Regards, |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Logging commands is a part of many packages, including ACL extensions. Your question is too general because you did not specify the OS.
Also, try the logfile options available in the sudoers configuration file and see if there is anything there to help you. If you restrict the sudo configuration to a bare minimum number of commands per user, you should be ok with standard sudoers logging. Code:
man sudoers This is discussed in the sudo man page: Quote:
... and not su |
|
#3
|
|||
|
|||
|
Re: Logging all commands after a sudo su-
Quote:
__________________
<hr> Captain James T Kirk USS Enterprise |
|
#4
|
|||
|
|||
|
We use Solaris OS here.
Some of our sudoers have found that they can just enter ; sudo su - So they become root. What bothers us more is the fact that when they have done so they is now way we can trace back each command a user as done while they are root. I am looking for a way to permit some users do become root (sudo su - or simply su) if we can trace what they do while they are root. Is this possible? Regards, |
|
#5
|
||||
|
||||
|
Yes, you need to configure the sudoers configuration file and restrict what users do and how they are logged.
You have NOT discovered a 'back door' you have SIMPLY not configured sudo and sudoers properly. (see post above). |
||||
| Google The UNIX and Linux Forums |