CDIST-TYPE__USER(7)
π cdist-type__user π
okay bestie, welcome to cdist-type__user from the cdist manual pages β this is the one that handles all your user accounts on the target machine, and honestly? it's giving main character energy. no cap. β¨
πΈ NAME πΈ
cdist-type__user β manage users ππ
β¨ DESCRIPTION β¨
so literally, this cdist type lets you create or modify users on the target. that's the whole vibe. new user? slay. tweak an existing one? also slay. π«Ά
π REQUIRED PARAMETERS π
None. zero. nada. you don't have to pass anything, she just works. π
π OPTIONAL PARAMETERS π
these are the little extras you can pass if you want to be specific about it. iykyk.
stateβ eitherabsentorpresent, and it defaults topresent. so if you don't say anything, bestie is getting created. periodt.commentβ seeusermod(8). go read that if you want the deets. πhomeβ see above π (same deal ascomment, okurrr)gidβ see above πpasswordβ see above πshellβ see above πuidβ see above π
π¦ BOOLEAN PARAMETERS π¦
these are the yes/no, on/off, vibe-check toggles. flags with no value, just vibes.
systemβ seeuseradd(8). heads up though: this one only applies on user create. it does nothing on modify, okay? π¨create-homeβ seeuseradd(8). also only applies on user create. π β¨remove-homeβ seeuserdel(8). and this one only applies on user delete. bye bye home dir π
π¬ MESSAGES π¬
the little receipts this type gives you when stuff happens. notifications, basically.
modβ User is modified π§addβ New user added πuserdel -rβ If user was deleted with homedir ππuserdelβ If user was deleted (keeping homedir) π
β EXAMPLES β
okay here's where it gets fun, bestie. copy these EXACTLY, don't freestyle the syntax. π
# Create user account for foobar with operating system default settings
__user foobar
# Same but with a different shell
__user foobar --shell /bin/zsh
# Same but for a system account
__user foobar --system
# Set explicit uid and home
__user foobar --uid 1001 --shell /bin/zsh --home /home/foobar
# Drop user if exists
__user foobar --state absent
look at that last one. --state absent and they're GONE. dramatic but necessary. π«‘
π₯ SEE ALSO π₯
pw(8), usermod(8) β go read those too, they're the supporting cast. π
π AUTHORS π
Steven Armstrong <steven-cdist--@--armstrong.cc> β icon behavior, honestly. thank you for your service π«Ά
π COPYING π
Copyright (C) 2011 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
π COPYRIGHT π
ungleich GmbH 2021
and that's the whole page, bestie. every flag, every message, every example β nothing skipped, nothing invented. go manage some users, you got this π
cdist-type__user β from version 7.0.0, dated Jul 31, 2022. mwah π bye bestie, slay your deployments π¦β¨
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms