Posted in linux
3836
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
44
This Month
248
This Year
405

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
In this case my anchor this week becomes driving almost 2hrs outside of Atlanta to one of my favorite hard core gyms in the world.. MetroFlex aka The Dungeon. The gym owners turn the heat way up so it becomes a fun sweat box and the gym members just watch from afar and leave me alone. I happily drive myself long distances to find MY ANCHOR. Our anchor allows us to have balance, focus and be as productive as possible. And if you're in the middle of a heavy set and your headphones start to fall off your head, like mine did here.. well.. f*ck the headphones. Let em break and fall. You can always get a new pair, but the iron ain't ever gonna lift itself.
Unknown
Random CSS Property

padding-top

The padding-top CSS property sets the height of the padding area on the top of an element.
padding-top css reference