1833759 Members
2379 Online
110063 Solutions
New Discussion

tracking su's

 
SOLVED
Go to solution
Steve G. Casino
Occasional Advisor

tracking su's

Is there a log i can view to track SUs?

Thanks in advance!
6 REPLIES 6
Victor BERRIDGE
Honored Contributor
Solution

Re: tracking su's

Hi,
All I can think of is /var/adm/sulog...

All the best
Victor
Jeff_Traigle
Honored Contributor

Re: tracking su's

/var/adm/sulog and /var/adm/syslog/syslog.log. See su(1).
--
Jeff Traigle
Pete Randall
Outstanding Contributor

Re: tracking su's

Steve,

/var/adm/sulog tracks the date, time, and user who did the su.


Pete

Pete
Geoff Wild
Honored Contributor

Re: tracking su's

Yes, /var/adm/sulog

more /var/adm/sulog
SU 07/26 10:33 + pts/7 gwild-root
SU 07/26 10:39 + pts/10 gwild-root
SU 07/26 10:39 + daemon root-oracle
SU 07/26 10:41 + daemon root-oracle
SU 07/26 11:58 - pts/11 gwild-root
SU 07/26 11:58 + pts/11 gwild-root
SU 07/28 07:16 + pts/12 gwild-root



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sanjay_6
Honored Contributor

Re: tracking su's

/var/adm/sulog is a readble file. su's are also logged into syslog,

cat /var/adm/syslog/syslog.log |grep -i ": su :"
'+" is a successfule attempt and "-" is an unsuccessful one.

Hope this helps.

Regds
Steve G. Casino
Occasional Advisor

Re: tracking su's

Big help! Thanks to everyone!
This is the best forum i ever joined!
I always get an answer in less than 5 minutes