Sample Header Ad - 728x90

grabbing username and password hashes from /etc/security/passwd

0 votes
2 answers
586 views
I have a list of usernames which i need to sync their passwords over to a new server. How would I go about extracting the username and password hash from the /etc/security/passwd file into the below format
username:MGURSj.F056Dj
The passwd file is in stanza format
username:
  password = MGURSj.F056Dj
  lastupdate = 623078865
Asked by jonske (15 rep)
May 5, 2020, 08:06 AM
Last activity: Oct 15, 2024, 08:12 AM