Difference between revisions of "User Management"
From Briki
| Line 1: | Line 1: | ||
| + | To add a new user, run: | ||
| + | <pre> | ||
| + | sudo adduser userid | ||
| + | </pre> | ||
| + | |||
To add a system user suitable for running daemon processes, run: | To add a system user suitable for running daemon processes, run: | ||
<pre> | <pre> | ||
| − | adduser --system --no-create-home --group userid | + | sudo adduser --system --no-create-home --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. | ||
Revision as of 13:04, 4 February 2007
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
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.