1821801 Members
3189 Online
109637 Solutions
New Discussion юеВ

useradd command.

 
SOLVED
Go to solution
Richard_115
Frequent Advisor

useradd command.

All

1. when one uses a useradd command, is there a log file where it writes to on the system ?

2. I am made aware that useradd in HP executes useradd.sam at the background, what about in SUN systems ? Is there a command like useradd.sam in SUN and where is its log file ?

Thanks
Richard
4 REPLIES 4
Peter Godron
Honored Contributor
Solution

Re: useradd command.

Richard,
I think the use of the adduser.sam is a unsupported method.
No log file to my knowledge and I don't think SUN would have a log file either.

However if you add the user from SAM, you DO have a log file.
Ninad_1
Honored Contributor

Re: useradd command.

As far as I am aware there is no log maintained where useradd command logs after creating users. But the obvious place where useradd makes chanes is the /etc/passwd file.
So if you maintain a backup passwd file then you can know which users have been added, also from the timestamp of the passwd file you can know when the changes were made.
In Solaris also you have the command useradd, or use the admintool utility.

Regards,
Ninad
Richard_115
Frequent Advisor

Re: useradd command.

Gordon,
Thanks for the reply... but where is the log file then if I am using sam ?
Peter Godron
Honored Contributor

Re: useradd command.

Richard,
whilst in SAM:
Options -> View SAM Log

Also:
useradd.sam actually links TO useradd

# ll ./usr/sam/lbin/useradd.sam
lrwxr-xr-x 1 root sys 17 Jun 20 2000 ./usr/sam/lbin/useradd.sam -> /usr/sbin/useradd