Operating System - HP-UX
1834272 Members
31453 Online
110066 Solutions
New Discussion

log files when creating user

 
SOLVED
Go to solution
Patrick Chim
Trusted Contributor

log files when creating user

Hi,

I am using HP-UX 11i untrusted system. Is there any logging when I create an user or modifying the user's attributes ? Is it available in a trusted system ?

Regards,
Patrick
5 REPLIES 5
Stefan Farrelly
Honored Contributor
Solution

Re: log files when creating user

There is no logging like this if you are untrusted. If you are trusted you get all sorts of logging which you can view with the getprpw command.

Here is the manpage for it;

Im from Palmerston North, New Zealand, but somehow ended up in London...
Michael Tully
Honored Contributor

Re: log files when creating user

No, not using the standard useradd command. There is however logging when done through SAM. If you use 'trusted' there is logging, through the 'getprpw' command. I haven't got a system inf front of me right this second, so I can tell exactly what you get. You could always develop scripts to add users with logging included.

Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome."
Anyone for a Mutiny ?
V. V. Ravi Kumar_1
Respected Contributor

Re: log files when creating user

Hi,
If u use SAM and either trusted or not trusted

/var/sam/log/samlog

If Trusted
getprpw -l

Regards
Never Say No
Karthik S S
Honored Contributor

Re: log files when creating user

Hi,

I dont think such facilities are available in an untrusted system. May be you have to rely on your own scripts. ( By monitoring the timestamp of /etc/passwd and /etc/group files. ( If the timestamp has changed compare the file with a backup file )

- Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Bill Hassell
Honored Contributor

Re: log files when creating user

When you add or modify a user, what tool do you use? If it is vi /etc/passwd, STOP! If you must use vi to edit the passwd file, (all sysadmins should) use vipw instead. But better yet os to use SAM which logs everything or if you use a ecript to add/modify/delete users, then add a logfile to the script. By far the easiest method is to use the logger command so the data appears in syslog.log.


Bill Hassell, sysadmin