Difference between revisions of "User Management"
From Briki
m (4 revision(s)) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
<pre> | <pre> | ||
sudo adduser --system --no-create-home --group userid | sudo adduser --system --no-create-home --group userid | ||
+ | </pre> | ||
+ | |||
+ | To add a system user with a defined home directory, run: | ||
+ | <pre> | ||
+ | sudo adduser --system --home /dir --group userid | ||
</pre> | </pre> | ||
See ''man adduser'' for more options. NB. Maximum username length is 8 chars - although this script won't enforce it, it will stop many processes/tools from displaying the username properly. | See ''man adduser'' for more options. NB. Maximum username length is 8 chars - although this script won't enforce it, it will stop many processes/tools from displaying the username properly. | ||
+ | |||
+ | To add a user to an existing group: | ||
+ | <pre> | ||
+ | sudo adduser user group | ||
+ | </pre> | ||
+ | |||
+ | To add a picture for a user (which will be displayed in the login screen, select System->Preferences->About Me |
Latest revision as of 17:25, 27 March 2010
To add a new user, run:
sudo adduser userid
To add a system user suitable for running daemon processes, run:
sudo adduser --system --no-create-home --group userid
To add a system user with a defined home directory, run:
sudo adduser --system --home /dir --group userid
See man adduser for more options. NB. Maximum username length is 8 chars - although this script won't enforce it, it will stop many processes/tools from displaying the username properly.
To add a user to an existing group:
sudo adduser user group
To add a picture for a user (which will be displayed in the login screen, select System->Preferences->About Me