Operating System - Tru64 Unix
1748093 Members
6116 Online
108758 Solutions
New Discussion юеВ

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 2
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?