Operating System - HP-UX
1830079 Members
1881 Online
109998 Solutions
New Discussion

usermod not updating /etc/passwd

 
Aravind_3
Frequent Advisor

usermod not updating /etc/passwd

I am executing the following commands:

#/usr/bin/usermod -d /data/userA -l userA userB
#/usr/sam/lbin/usermod.sam -S /etc/passwd -p 2cDrpz8Xelew6 userA

The First command says
Login userA is not unique.

Second Command says
Login userA does not exist.

/etc/passwd has no entries for userA.
Why it is saying userA is not unique ?

Thanks
Aravind
2 REPLIES 2
Allan Pincus
Frequent Advisor

Re: usermod not updating /etc/passwd

I'm pretty sure usermod requires that userA already exists. If there is no entry in /etc/passwd for userA, then you are likely getting the error because of that.

The error message is fairly cryptic.

Hope this helps.
harry d brown jr
Honored Contributor

Re: usermod not updating /etc/passwd

The first message is because

userA is already defined in /etc/passwd

Is this a trusted machine??

And you MUST be running 10.20, because in the new world order (11i) usermod.sam GOES AWAY (well, is really a symbolic link to /usr/sbin/usermod!)

live free or die
harry

Live Free or Die