0

I do not have root privileges.

I wish to get the lock status of a given account say mwss

I'm on Sun Solaris

uname -a
SunOS myhost 5.11 11.4.27.82.1 sun4v sparc sun4v

Below is the output from shadow file.

sudo grep dias /etc/shadow

mwss:*AL*$5$rounds=10000$yX8/zAfl$DH9du8FiUDxfTV7jVWu7rhET9AUFG3.yrBzgoWXtns8:18397::::::5270551

From the above how can we determine if account mwss is locked or not ? Any other solutions will also be appreciated.

  • I do not have root privileges. Yes you do - you're reading /etc/shadow, which requires root privileges. – Andrew Henle Jan 14 at 12:58
  • Fine … but the question remains …. how do I determine if it is locked or unlocked ? @AndrewHenle – Ashar Jan 14 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.