1836590 Members
2895 Online
110102 Solutions
New Discussion

Re: sudo log fle

 
Tvs
Regular Advisor

sudo log fle

can u pls teel me where we can find out sudo log file

thanks in advance
9 REPLIES 9
Muthukumar_5
Honored Contributor

Re: sudo log fle

what is the configuration of logfile attribute in Sudoers configuration? It will be taken based on that.

-Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: sudo log fle

Refer more:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=967183

-Muthu
Easy to suggest when don't know about the problem!
Ivan Ferreira
Honored Contributor

Re: sudo log fle

You can configure it in the sudoers file, like this:

Defaults syslog = auth

Defaults log_year,log_host,logfile=/var/adm/sudo.log
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Arunvijai_4
Honored Contributor

Re: sudo log fle

You can set the log file in sudo configuration file. Check man page of sudoers,

http://www.courtesan.com/sudo/man/sudoers.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Raj D.
Honored Contributor

Re: sudo log fle

Hi Tvs,

sudo log resides in /var/log/

And its name is sudo.log

--------------
# cd /var/log

# ls -l
total 240
-rw-r--r-- 1 root sys 107916 Nov 4 09:02 sudo.log

root@norsapa2 [/var/log]

Also it makes entry in syslog.log whenever someone use sudo.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Rick Garland
Honored Contributor

Re: sudo log fle

There are compile options you can define to put the sudo.log anywhere you want.

If the depot format. /var/adm/syslog/sudo.log

Can make entry in sudoers file;
Defaults !syslog
Defaults logfile=/var/adm/sudo.log



Devender Khatana
Honored Contributor

Re: sudo log fle

Hi,

There is no seperate log file for sudo. By default everything is logged to syslog.log only. Allthough you can log it seperately, unless done , the default file is sused.

Extract from "man sudoers"
===========================
logfile Path to the sudo log file (not the syslog log file).Setting a path turns on logging to a file; negating this option turns it off.

HTH,
Devender
Impossible itself mentions "I m possible"
Sยภเl Kย๓คг
Respected Contributor

Re: sudo log fle

Hi,

view the /etc/suoders file and check for sudo Defaults logfile=/var/adm/sudolog/sudo.log entry. This is the location where the sudo log is saved.
regards,
Sunil
Your imagination is the preview of your life's coming attractions
Raj D.
Honored Contributor

Re: sudo log fle

Hi Tvs,

Try this , this will tell you where is the sudo log file.

# find / -name sudo.log -print

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "