cancel
Showing results for 
Search instead for 
Did you mean: 

show to lock a user

leyearn
Regular Advisor

show to lock a user

Now a user is in our system
we don't want users who use the id to login
how can I lock the id?
2 REPLIES
Venkatesh BL
Honored Contributor

Re: show to lock a user

I am not sure that I understand the exact requirement...but, you can lock user by using 'dxaccounts'. Invoke it, select a user to be locked and click on the 'Lock' button.
Ivan Ferreira
Honored Contributor

Re: show to lock a user

If you want to lock a user, you can disable the account by using:

usermod -x administrative_lock_applied=1 username

Or you can use vipw, change the password for the user to:

*Nologin

For example:

nobody:*Nologin:65534:65534:anonymous NFS user:/:
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?