Operating System - HP-UX
1834277 Members
2232 Online
110066 Solutions
New Discussion

Re: how to capture useradd/userdel activities in syslog?

 
jh_yang
Advisor

how to capture useradd/userdel activities in syslog?

how to capture useradd/userdel activities in syslog?

Assuming user login as root on console directly and perform useradd/userdel there.


Thanks
David
3 REPLIES 3
Emil Velez
Honored Contributor

Re: how to capture useradd/userdel activities in syslog?

do it in sam/SMH and it is captured in the samlog and smh log

dont do it from the command line.
Kapil Jha
Honored Contributor

Re: how to capture useradd/userdel activities in syslog?

Probably you may try

user.debug and user.info

Options in syslog.conf(1M)

BR,
Kapil+


I am in this small bowl, I wane see the real world......
V. Nyga
Honored Contributor

Re: how to capture useradd/userdel activities in syslog?

Hi,

if a user logged in as root he always can prevent you from capture the activities.
You can write the activities in a log or history file, but root can always change such files.

But of course, you can try it.
You can configure history for root and define a big number for the history file, so you can grep history or the history file.
You also can create an alias for a command you like to capture and write the actifity in a log file before you execute the command.

HTH
V.
*** Say 'Thanks' with Kudos ***