Operating System - HP-UX
1833780 Members
2769 Online
110063 Solutions
New Discussion

enable user with line command

 
SOLVED
Go to solution
Cavazza Davide
Occasional Advisor

enable user with line command

Is it possible to enable an user from line command ?

I have some problem with SAm and 2 users have the account disabled
4 REPLIES 4
Jannik
Honored Contributor

Re: enable user with line command

passwd -d
-d
Allow user to login without a password by deleting it. In untrusted mode this unlocks/activates the user account if found locked/deactivated.


jaton
Ranjith_5
Honored Contributor
Solution

Re: enable user with line command

Hi David,

For trusted systems use,

#/usr/lbin/modprpw -k

Regards,
Syam
Bharat Katkar
Honored Contributor

Re: enable user with line command

Hi,
I was able to reactivate the user just by assiging passwd to it. So what i found id:

Deactivate user:

# /usr/bin/passwd -r files -l davide

Activate User:

# /usr/bin/passwd davide

This will activate user davide again.

Regards,

You need to know a lot to actually know how little you know
Cavazza Davide
Occasional Advisor

Re: enable user with line command

The answer of Bharat Katkar is the right solution for the problem