lpasswd(1)

πŸ’– lpasswd β€” bestie edition πŸ’–

okay so real talk, this is the General Commands Manual page for lpasswd, and it's basically the "change ur password" girlie for both users and groups. let's get into it 🫢


✨ NAME ✨

lpasswd β€” change group or user password πŸ”‘


🌸 SYNOPSIS 🌸

lpasswd [OPTION]... [name]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, lpasswd changes the password of user or group name. that's the whole vibe. πŸ’…

if u don't pass the name argument, it just uses the username of the invoking user, easy. but β€” and this is the plot twist β€” the name argument gets ignored if lpasswd is run set-uid to a different user. so like, don't try it. πŸ™ˆ

also, entering an empty password (yes, just pressing Enter like a lil menace) aborts the password setting operation. nothing happens. we go home. 😭


πŸŽ€ OPTIONS πŸŽ€

  • -F, --plainpassword-fd=fd β€” read the password from file descriptor fd, and it's terminated by end of file, '\r', or '\n'. pick ur fave ending ig ✨
  • -f, --password-fd=fd β€” read the password hash from file descriptor fd, also terminated by end of file, '\r', or '\n'. yes bestie, hash, not plaintext πŸ‘‘
  • -g, --group β€” change the password of group name. by default, the password of user name is what gets changed. so this is ur "actually i meant the group" button πŸ’œ
  • -i, --interactive β€” ask all the questions when connecting to the user database, even if default answers are already set up in the libuser configuration. nosy mode: activated πŸ”
  • -P, --plainpassword=password β€” set the password to password. note that the password can be viewed while running lpasswd using tools such as ps(1). so like… everyone on the box can see it. be so serious rn πŸ’€
  • -p, --password=encrypted β€” set the password to the password represented by the hash encrypted. note that the hash can be viewed while running lpasswd using tools such as ps(1). still visible!! just less catastrophic 🫢
⚠️ okay so the -P and -p thing? that's a real warning, not me being dramatic. anything u pass on the command line can be peeked at via ps(1) while lpasswd is running. the fd options exist for a reason, bestie. use them. πŸ’–

🌈 EXIT STATUS 🌈

the exit status is 0 on success, and nonzero on error. classic. no cap. βœ…


πŸ‘‘ SEE ALSO πŸ‘‘

ps(1) β€” mentioned twice up there because apparently it's the main character of the "oops everyone saw ur password" storyline 😭


and that's the whole page, bestie!! this one came from the libuser era, dated Jan 12 2005 β€” so yeah, she's vintage, but the advice is still giving "do not put ur password on the command line" energy fr fr. mwah πŸ’…βœ¨