Lock & Unlock User in Solaris

Share this article :

Lock any user id in Solaris:

# passwd -l <User_ID>

Unlock any user id in Solaris:

# passwd -d <User_ID>

Unlock user id and force user to enter new password:

# passwd -df <User_ID>

Additional note:
• User id will unlock and will be force to change the password at next login

Related posts

Display Solaris System Information
Enable & Disable Rlogin Service in Solaris 10
Determine Solaris Inode Usage
Bypass Solaris Timed Out Waiting for NIS to Come Up
  • Doug

    passwd -d actually deletes the password as it unlocks the account according to the man page. If you want to just unlock the account then use
    passwd -u

© 2018 ITsiti. All Rights Reserved
Powered by KEEM