Posted in linux
4017
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
48
This Month
201
This Year
586

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
There is a qualitative and quantitative difference between a day that begins with a little exercise, a book, meditation, a good meal, a thoughtful walk, and the start of a day that begins with a smartphone in bed.
Unknown
Random CSS Property

place-content

The place-content CSS shorthand property allows you to align content along both the block and inline directions at once (i.e. the align-content and justify-content properties) in a relevant layout system such as Grid or Flexbox.
place-content css reference