System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable a user in hpunix

SOLVED
Go to solution
joseph51
Regular Advisor

how to disable a user in hpunix

hi,

can anu one tell me how to disable a user in hpunix
7 REPLIES
Aneesh Mohan
Honored Contributor
Solution

Re: how to disable a user in hpunix

Hi,

# passwd -l username

Regards,
Aneesh
joseph51
Regular Advisor

Re: how to disable a user in hpunix

Hi aneesh,

can i use user id insted of username

like this passwd -l 083941
Michal Kapalka (mikap)
Honored Contributor

Re: how to disable a user in hpunix

AL_3001
Regular Advisor

Re: how to disable a user in hpunix

Hi Binu,

using username in passwd -l should not be an issue. Go ahead and disable the user.

Another way to do it, is using SAM. Select the user and deactivate.

Choice is all yours.

Cheers,
AL
joseph51
Regular Advisor

Re: how to disable a user in hpunix

i found the solution with the replay of passwd -l username
Ganesan R
Honored Contributor

Re: how to disable a user in hpunix

Hi Binu,

>>can i use user id insted of username<<

No. You can't. "passwd" command will not accept userid as it's argument. You have to give username as a argument.

See man passwd
Best wishes,

Ganesh.
Aneesh Mohan
Honored Contributor

Re: how to disable a user in hpunix

am late ...


>>can i use user id insted of username

No ,using passwd command we have to input the username.
But You can prepare script to accomplish that.

Regards,
Aneesh