I want to create a user with administrative privileges and all the regular setups like home directory.
- Is there a
adduserparameter to give the usersudopowers automatically? - What are the default settings for
adduser? Will it automatically create home directories and all the other things without extra parameters? (i.e. isadduserenough?)
Add the user to the sudo group with:
adduser sudo
(If you're running Ubuntu 11.10 or earlier, use the admin group.)
Default values are stored in /etc/adduser.conf, you can check them with
less /etc/adduser.conf
To create a user and add it directly to the sudo group use
adduser --group sudo
(Again, use admin in place of sudo for 11.10 and earlier.)
Have a look at all the options you have with adduser here.
No comments:
Post a Comment