For example : I may want an xbox account that will only ever be used for accessing samba shares.
There is a nice switch when using the 'adduser' command to avoid creating a home directory.
So in my xbox example I would do:
If instead you use the 'useradd' command simply leave out the '-d' switch.
We use the -G switch and after this we can list (separated by commas) the groups to which we want the user to belong.
Not to worry. Use the 'usermod' command instead. For example:
Note: If the user you modify is part of a few groups and you forget to list one or more of them then the user will be removed from those groups. To avoid this happening use the -a switch so we append, and not overwrite.
--- CategoryNotes
No page links to AdduserNotes.