Sorry, user me is not allowed to execute '/usr/bin/ifconfig eno1 down' as root on pc
So I did:
usermod -a -G sudo me
But I get:
usermod: group 'sudo' does not exist
I tried wheel also with no luck. Maybe I have misconfigured something, or is this maybe a common problem on Manjaro from some update awhile ago? It’s been going on in my vm for a good while now, making me use su to do basic tasks. Would be really nice to get solved. Thank you!
Runas and Command-specific defaults for me:
Defaults!/etc/ctdb/statd-callout !requiretty
User me may run the following commands on pc:
(ALL) NOPASSWD: /usr/bin/refresh-network
The refresh-network command is a simple one I’ve been trying to install (the problem occurred beforehand) to fix an issue for manual network configuration.
I tried this, @megavolt, but it did not seem to change anything. Should I need to reboot?
# groupadd wheel && sudo usermod -aG wheel me
> groupadd: group 'wheel' already exists
# groupadd wheel
> groupadd: group 'wheel' already exists
# usermod -aG wheel me
> <no reply>
# exit
I did not try doing it as sudo since sudo is nonfunctional, I opted for root. Was that a mistake?
If I may diverge the conversation for a moment, I have found something strange that perhaps you can shed some light on. In moving to edit /etc/sudoers (I think you meant a slash over a space above?) I came upon this line:
@includedir /etc/sudoers.d
So I went into that directory and found a file (ctdb) containing these lines:
The rpcuser caught my eye. Is this normal to have? I do not remember installing any such “RPC” system or “STATD” and I wonder if I may have picked up a bug?