Posted in linux
3979
2:23 am, May 19, 2022
 

add a user and add the user to sudo group

basic adding of a user in linux and then adding the user to the sudo group to allow it to run super user commands like apt update or other potentially system breaking commands.

Note: replace "username" with your new user account name

with your main root account you can run

adduser username

or if you already have a su added user you can run

sudo adduser username

then to add the user to the sudo group run

usermod -aG sudo username

if this does not work you can try the same command but with sudo, if you are already logged in as root then you should not need to run sudo.

sudo usermod -aG sudo username

then to login to the new account type

su username

or you can logout and then log back into the server

View Statistics
This Week
25
This Month
163
This Year
548

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
Most people can do absolutely awe-inspiring things,” he said. “Sometimes they just need a little nudge.
Unknown
Random CSS Property

::before (:before)

In CSS, ::before creates a pseudo-element that is the first child of the selected element. It is often used to add cosmetic content to an element with the content property. It is inline by default.
::before (:before) css reference