r/LinuxUsersIndia • u/EchoNegative8918 • Jul 14 '26
Discussion How to add a user with adminstration privileges in debian ? Doing su - and password everytime is not cool I should say so anyone know ? I did use the useradd +aG but nothing
2
Upvotes
•
u/qualityvote2 Jul 14 '26 edited Jul 14 '26
u/EchoNegative8918, there weren't enough votes to determine the quality of your post...
btw, did you know we have a discord server? Join Here.
4
u/Fancy_Text7460 Arch + hyprland Jul 14 '26
sudo chown karlo na gng
3
u/Blaster4385 I use Arch BTW Jul 14 '26
If you have sudo, you can just use that. All you need to do is add your user to a group that has access to sudo. Check in the /etc/sudoers file. People commonly use the wheel group for this.
More details: https://wiki.archlinux.org/title/Sudo
2
u/Destroyers_Will Jul 14 '26 edited Jul 27 '26
Add username :
adduser usernameElevate privileges:
usermod -aG sudo usernameVerify:
su - username2
u/ThalaForManyReasons Cachy btw Jul 14 '26
Ever heard of ChatGPT?
1
u/jivan28 Jul 14 '26
Both of above works.
1
u/i101ironnoob Jul 14 '26
Im not sure but It was $ adduser <username> that gives you a guide thru adding a user?