Posted in linux
3963
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
36
This Month
261
This Year
532

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
I believe that in order to better your knowledge base, it takes a lot of failing in order to succeed. I don't consider anything a failure as long as you get back up and you learn from your own mistakes.
Unknown
Random CSS Property

scroll-margin-bottom

The scroll-margin-bottom property defines the bottom margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container's coordinate space), then adding the specified outsets.
scroll-margin-bottom css reference