Below you will find pages that utilize the taxonomy term “users”
April 24, 2017
User and Group Management Cheat Sheet
“I fight for the users!” -Tron
Just a basic syntax cheat-sheet, for things I’d most likely use these for.
useradd -c: add a comment (typically used for the user’s full name) -d: specify home directory (but this doesn’t necessarily create it) -m: create home diretory -r: system account (for things like Apache where it’s best to run under a user acct) usermod -a: append; adds user to groups (only use with -G option) -c: overwrite current comment -d: specify new home direcctory -G: a list of groups that the user is a member of (overwrites the list unless used with -a) -L: lock password (this won’t block SSH with a key) -m: move home (move user’s home to a new location) groupadd -r: system groupmod -n: new name for the group
June 7, 2016
sudo or wheel
I just found out that in some systems (looking at centOS 7 currently) have a ‘wheel’ group, which supposedly is the equivalent of the ‘sudo’ group on my Ubuntu install. Wheel is something old-school that stuck around. Meant “big wheel” which apparently was something like “big cheese”, which also doesn’t make sense but they mean “someone with power” or “in charge”.