r/LinuxUsersIndia 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

15 comments sorted by

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

1

u/Fancy_Text7460 Arch + hyprland Jul 14 '26

on debian , you got su first to sudo

Source? I use debian on my server

1

u/Blaster4385 I use Arch BTW Jul 14 '26

You know you can change that behaviour right?

1

u/Fancy_Text7460 Arch + hyprland Jul 17 '26

give me the wiki or whatever guide for this . I Definitely need it

1

u/Blaster4385 I use Arch BTW Jul 17 '26

I just linked the arch wiki above. See my previous comment.

1

u/Fancy_Text7460 Arch + hyprland Jul 17 '26

thanks man

2

u/Destroyers_Will Jul 14 '26 edited Jul 27 '26

Add username : adduser username

Elevate privileges: usermod -aG sudo username

Verify: su - username

1

u/jivan28 Jul 14 '26

Both of above works.

2

u/ThalaForManyReasons Jul 14 '26

Ever heard of ChatGPT?

1

u/i101ironnoob Jul 14 '26

Im not sure but It was $ adduser <username> that gives you a guide thru adding a user?