I'm trying to give sudo rights to another user on my laptop. I've found the instructions for how to enter visudo and what syntax to use (that took a ridiculous amount of googling, but that's another story).
The trouble is, I can't see my username there at all, so I can't copy the rights I have (which I was hoping to do).
admin group rights are commented out, sudo group rights are also commented out. So there aren't any groups with sudo rights.
I see an include - 'sudoers.d', but I don't want to risk opening that to read it in case it's as vulnerable to errors as 'sudoers'. I gather from looking at some of the other questions here though, that it contains another group 'wheel', which may have sudo rights. But then I saw this comment on one of the threads " Generally, new users are added to the
wheel group on manjaro". Which suggests 'wheel' is assigned to all new users and so wouldn't cover what I'm trying to do.
Anyway, I'd appreciate it if someone could clear up my confusion.
Why is my username not in sudoers? What is the purpose of the sudoers.d additional include which I presume contains my username?
Why do most (if not all) guides suggest using
USER_NAME ALL=(ALL) ALL(for example the Arch 'sudo' page), when that's not even how the main admin user is enabled?
What is the difference between adding a user via
USER_NAME ALL=(ALL) ALL(which seems much more prone to error, and yet is the default advice) and adding a user to the 'wheel'/'admin'/'sudo' group, which seems a lot easier and yet is always demoted to "oh, and you could also..." at the end of the page (not even on the Arch page)?