Difference between revisions of "User Management"
From Briki
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | See ''man adduser'' | + | To add a new user, run: |
+ | <pre> | ||
+ | sudo adduser userid | ||
+ | </pre> | ||
+ | |||
+ | To add a system user suitable for running daemon processes, run: | ||
+ | <pre> | ||
+ | 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> | ||
+ | |||
+ | 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