Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

huge sulog file

Status
Not open for further replies.

shoux

Technical User
Nov 9, 2000
83
MY
hi all

the file size is 40mb. there is 700 users online. Howcome, each time users logged in the root will execute su command to them.this will caused the sulog size is growth.it seems that root is succesfuly

below is the snapshoot of the sulog file.
SU 08/25 08:43 + tty?? root-a20
SU 05/25 08:43 + tty?? root-a60
SU 08/25 08:43 + tty?? root-a16
SU 08/25 08:44 + tty?? root-al2
SU 08/25 08:44 + tty?? root-b10

thank you

shoux
 
1) cut down those users who have access to root

OR

2) edit the file and make it smaller

Alex
 
To empty the file completely, use cat /dev/null > sulog

This will at least give you a blank canvass from which you can monitor and assess who's accessing as root and, as Alex says, may give you ammunition to argue for more restricted access, perhaps using sudo.
 
In fact your file shows root 'suing' to a number of users

Why is it doing that ?

Alex
 
hi all

as alex said, why the root user suing to other user. I do not know whether the system config. is wrong. i noticed each time user logged in the root will executed the command.

Please help me

Thank you

shoux
 
Is there anything in /etc/profile which might be causing this? I would have expected at least a prompt for a password if that's the case.
 
Perhaps a root cron job which uses "su <user> -c" regulary?

Quick way to clear the log - ">sulog"

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
My internal and external auditors would throw a fit if I blanked out the sulog. I would do the following:

make sure it's not in use

cd /var/adm
fuser sulog

I would save atleast one years worth of data. This is represented with "N"

tail -N /var/adm/sulog > /var/adm/sulog.new

mv /var/adm/sulog.new /var/adm/sulog

chmod 600 /var/adm/sulog

aixmurder is probably onto it. It's probaby a cron entry under roots cron, or is a job schedule just as ESP which runs as root but su's to approved/appropriate users.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top