lgroupmod(1)

πŸ’– lgroupmod β€” modify a user group, bestie edition πŸ’–

okay so this is lgroupmod, a lil tool from the libuser manual (section 1, general commands, yes ma'am πŸ‘‘). it's giving "edit a group, but make it fashion" ✨


✨ SYNOPSIS ✨

lgroupmod [OPTION]... group

🌸 DESCRIPTION 🌸

so basically? lgroupmod modifies the user group whose name is group. that's the whole vibe. one group, a bunch of options, endless possibilities πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • -A, --admin-add=list β€” adds the users in the comma-separated list to the group's administrators. new admins, who dis 🫢
  • -a, --admin-remove=list β€” removes the users in the comma-separated list from the group's administrators. and if you try to remove someone who isn't even an admin right now? it just silently succeeds. no drama, no error, we move on πŸ’€
  • -g, --gid=gid β€” changes the group's group ID to gid. glow-up for the GID fr fr
  • -i, --interactive β€” asks all the questions when connecting to the user database, even if there are default answers already set up in the libuser configuration. it's nosy on purpose, and honestly? iconic πŸ™ˆ
  • -L, --lock β€” locks the group. this stops users from using the group password with newgrp(1) to become a member of the group. it's giving do not pass go πŸ”’
  • -M, --member-add=list β€” adds the users in the comma-separated list to the group's members. welcome to the group chat bestie πŸŽ€
  • -m, --member-remove=list β€” removes the users in the comma-separated list from the group's members. and same as above: removing people who aren't currently members just silently succeeds. no hard feelings ✨
  • -n, --name=name β€” renames the group to name. rebrand era πŸ’…
  • -P, --plainpassword=password β€” sets the group's password to password. > heads up bestie: the password can be viewed while lgroupmod is running by tools like ps(1). so like… everyone can see it. be careful 😭
  • -p, --password=encrypted β€” sets the group's password to the password represented by the hash encrypted. > same warning energy: that hash can be viewed while lgroupmod is running by tools like ps(1). protect your hashes, queen 🫢
  • -U, --unlock β€” unlocks the group. free her 🌈

⭐ EXIT STATUS ⭐

the exit status is 0 on success, and nonzero on error. that's it, that's the tea β˜•


and that's the whole page!! this was from the libuser manual, dated Jan 11 2005 (a vintage classic, honestly), and the man page is literally just called lgroupmod(1). slay, periodt, go modify some groups πŸ’–βœ¨πŸ¦‹