Hi all,
Apologies for the series of noob questions.
My question is: what am I doing wrong in making my user able to access sudo?
Context:
I've just wiped my solver box and put a fresh Debian install on it. created userA during the install process.
I then wanted to make that user a sudoer. No matter.
su -
usermod -aG sudo userA % add userA to the sudo group
groups userA % confirm userA has sudo listed as a group it belongs to
visudo
sudo ALL=(ALL:ALL) ALL %change to uncommented
su - userA % change back to userA
sudo whoami
I have confirmed that userA is in the sudo group. I've rechecked the visudo line uncommenting.
Eventually I have got it working by putting in an explicit rule using visudo:
userA ALL=(ALL:ALL) ALL
Which has worked but seems bizarre that it was required. Is there something that I'm missing? I'm surprised this is difficult on a virgin system with all default install (apart from Cinammon being the desktop environment).
Apologies for the series of noob questions.
My question is: what am I doing wrong in making my user able to access sudo?
Context:
I've just wiped my solver box and put a fresh Debian install on it. created userA during the install process.
I then wanted to make that user a sudoer. No matter.
su -
usermod -aG sudo userA % add userA to the sudo group
groups userA % confirm userA has sudo listed as a group it belongs to
visudo
sudo ALL=(ALL:ALL) ALL %change to uncommented
su - userA % change back to userA
sudo whoami
> userA is not in the sudoers file.
I have confirmed that userA is in the sudo group. I've rechecked the visudo line uncommenting.
Eventually I have got it working by putting in an explicit rule using visudo:
userA ALL=(ALL:ALL) ALL
Which has worked but seems bizarre that it was required. Is there something that I'm missing? I'm surprised this is difficult on a virgin system with all default install (apart from Cinammon being the desktop environment).