Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
87
rated 0 times [  87] [ 0]  / answers: 1 / hits: 382202  / 3 Years ago, fri, november 12, 2021, 2:41:24

I want to create a user with administrative privileges and all the regular setups like home directory.




  1. Is there a adduser parameter to give the user sudo powers automatically?

  2. What are the default settings for adduser? Will it automatically create home directories and all the other things without extra parameters? (i.e. is adduser <username> enough?)


More From » sudo

 Answers
0

Add the user to the sudo group with:



adduser <username> 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 <username> --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.


[#42710] Saturday, November 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tonhorn

Total Points: 196
Total Questions: 118
Total Answers: 95

Location: Vanuatu
Member since Fri, May 13, 2022
2 Years ago
tonhorn questions
Tue, May 10, 22, 12:01, 2 Years ago
Sat, Dec 18, 21, 06:23, 2 Years ago
Thu, Jun 16, 22, 04:03, 2 Years ago
Fri, Apr 1, 22, 05:23, 2 Years ago
;