...
This varies, depending on the type of user. Maybe the user will be a full Linux user; maybe the user is only required for use with samba.
TODO: collect any standard and other localised examples to augment the Savitri Bhavan examples
For a full Linux user: TODO: complete and test this description, this example is as used at Saitri Bhavan on "archiver":
useradd --comment 'User NameVadivel' --create-home --groups archiver,sb-users
gid <primary group name or number> -
-groups <comma separated list of secondary groups> <user name>-
vadiveluser-group
For a user who will only log on to samba: TODO: complete and test this description
...
, this example is as used at Saitri Bhavan on "archiver":
useradd --create-home --groups 'sb-users' --home-dir /mnt/archive/private/users/$u/ --user-group --groups <comma separated list of secondary groups> <user name>$u
User disabling and removal
...