lusermod(1)
π lusermod(1) β the glow-up page for your users π
okay bestie, so this is lusermod, straight out of the General Commands Manual, and it's literally the makeover artist for user accounts. think of it as β¨editingβ¨ a person's whole vibe in the user database. no cap.
πΈ NAME πΈ
lusermod β modify an user π
β¨ SYNOPSIS β¨
lusermod [OPTION]... user
π¦ DESCRIPTION π¦
so basically? it modifies the user with name user. that's the whole thing. the rest is just how you do it. π
π OPTIONS π
-c,--gecos=gecosβ sets the user's GECOS field togecos. ngl the GECOS field is the classic little spot where the system traditionally keeps the user's real name and other info about them. π«Ά-d,--directory=directoryβ sets the user's home directory todirectory. new address, who dis. π-g,--gid=gidβ changes the user's primary group ID togid. heads up tho: if a group with IDgiddoes not exist, it prints a warning but does the operation anyway. so likeβ¦ it tells you, and then does it regardless. iconic chaos. π-i,--interactiveβ asks you all the questions when connecting to the user database, even if default answers are already set up in libuser configuration. very "let's talk about it" energy. π-L,--lockβ locks the user's account. this prevents logging in using the user's password. π-l,--login=nameβ renames the user toname. rebranding, but for a person. π-m,--movedirectoryβ after changing the user's home directory (with the-doption), it moves the old home directory to the new location. packing day fr fr. π¦-P,--plainpassword=passwordβ sets the user's password topassword. lowkey important: the password can be viewed whilelusermodis running, using tools likeps(1). soβ¦ everyone at the party can see it. π-p,--password=encryptedβ sets the user's password to the password represented by the hashencrypted. also important: that hash can be viewed whilelusermodis running, using tools such asps(1). same vibe, still exposed. π-s,--shell=shellβ sets the user's login shell toshell. pick your fighter. π-U,--unlockβ unlocks the user's account. welcome back bestie. π-u,--uid=uidβ changes the user's user ID touid. new number, same queen. π’--commonname=nameβ sets the user's common name toname. this attribute is only supported in some backends (e.g. LDAP), and its support may have further limitations (e.g. LDAP schema rules). so like, backend-dependent, iykyk. π--givenname=nameβ sets the user's given name toname. this attribute is only supported in some backends (e.g. LDAP), and its support may have further limitations (e.g. LDAP schema rules). πΈ--homephone=phoneβ sets the user's home telephone number tophone. this attribute is only supported in some backends (e.g. LDAP), and its support may have further limitations (e.g. LDAP schema rules). βοΈ--roomnumber=roomβ sets the user's room number toroom. this attribute is only supported in some backends (e.g. LDAP), and its support may have further limitations (e.g. LDAP schema rules). πͺ--surname=nameβ sets the user's surname toname. this attribute is only supported in some backends (e.g. LDAP), and its support may have further limitations (e.g. LDAP schema rules). π«--telephonenumber=phoneβ sets the user's telephone number tophone. this attribute is only supported in some backends (e.g. LDAP), and its support may have further limitations (e.g. LDAP schema rules). π
quick note bestie: every one of those--commonname,--givenname,--homephone,--roomnumber,--surnameand--telephonenumberones is only supported in some backends (e.g. LDAP), and even then the support may have further limitations (e.g. LDAP schema rules). so don't come for me if your backend says no. π§
β EXIT STATUS β
the exit status is 0 on success, and nonzero on error. simple as that. β¨
this page came from libuser, dated 2009-12-11, and it's the lusermod(1) page from the General Commands Manual. ty for reading bestie, go modify some users, and remember: vibe check your backends first ππ¦π
π¦ where this page comes from
- alpine 3.24: libuser-doc 0.64-r2 Β· LGPL-2.0-or-later
- centos-stream 10: libuser 0.64-12.el10 Β· LGPL-2.0-or-later
- centos-stream 9: libuser 0.63-17.el9 Β· LGPLv2+
- centos-stream 9: libuser 0.63-17.el9 Β· LGPLv2+
- debian bookworm: libuser 1:0.64~dfsg-1 Β· LGPL-2.0-or-later
- debian trixie: libuser 1:0.64+git20241106~dfsg-3 Β· LGPL-2.0-or-later
- fedora 43: libuser 0.64-16.fc43 Β· LGPL-2.0-or-later
- fedora 43: libuser 0.64-16.fc43 Β· LGPL-2.0-or-later
- fedora 44: libuser 0.64-17.fc44 Β· LGPL-2.0-or-later
- fedora 44: libuser 0.64-17.fc44 Β· LGPL-2.0-or-later
- opensuse-leap 16.0: libuser 0.64-bp160.1.1 Β· LGPL-2.0-or-later
- opensuse-leap 16.0: libuser 0.64-bp160.1.1 Β· LGPL-2.0-or-later
- opensuse-leap 16.0: libuser 0.64-bp160.1.1 Β· LGPL-2.0-or-later
- opensuse-leap 16.0: libuser 0.64-bp160.1.1 Β· LGPL-2.0-or-later
- ubuntu jammy: libuser 1:0.63~dfsg-4build1 Β· LGPL-2.0-or-later
- ubuntu noble: libuser 1:0.64~dfsg-2build2 Β· LGPL-2.0-or-later
- ubuntu questing: libuser 1:0.64+git20241106~dfsg-3
- ubuntu resolute: libuser 1:0.64+git20241106~dfsg-4build1 Β· LGPL-2.0-or-later
- ubuntu stonking: libuser 1:0.64+git20241106~dfsg-4build1 Β· LGPL-2.0-or-later
- Copyright (C) 2005, 2008, 2009 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms