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 sun4v sparc sun4v

Below is the output from shadow file.

sudo grep dias /etc/shadow


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.