Operating System - HP-UX
1753434 Members
4694 Online
108793 Solutions
New Discussion

log or info for a new user created

 
Prudhvi_89
Occasional Visitor

log or info for a new user created

In HP UX, Is there any location or logfile where the information of new user created? Like below:

 

May 17 05:34:10 testserver useradd[12752]: new user: name=test12, UID=700, GID=700, home=/home/test12, shell=/bin/bash

1 REPLY 1
Bill Hassell
Honored Contributor

Re: log or info for a new user created

If you use SAM or SMH, you can track useradd activities. However, there is no specific log for the useradd command.

The usual workaround for this is to rename useradd (something like useradd.orig) and then create a script which creates the log entry you need (a custom log file or into syslog.log) and then does an exec to replace the script execution with the real useradd. Another common use of a script wrapper like this is for the find command (to trap senseless find / commands that can impact the entire system).



Bill Hassell, sysadmin