Wanted to remove the need for a password while using the terminal for a user. On other distro's i would edit the /etc/sudoers file, but I can't find this file on Solus. Is there an equivalent file or way of preventing a user requiring to enter a password every time?
Where is /etc/sudoers??
- Edited
/usr/share/defaults/etc/sudo
Upon second thought.
Don't.
- Best Answerset by Spaceboy60
diagnostics0 DO NOT EDIT THIS FILE. It's managed by the package manager and your changes will be overridden on any future update to the sudo package.
I would recommend instead running sudo visudo
. This will open up a text editor (probably nano unless you have a different default) and allow you to add whatever configuration snippet you want. Then it will validate it and make sure it works when you try to save it. The file will be written to /etc/sudoer.d/visudo
.
ok, thanks. I added to the file: %sudo ALL=(ALL) NOPASSWD: ALL
Is that ok or is there a better method?
Spaceboy60 Did you add to the file /usr/share/defaults/etc/sudo
or /etc/sudoers/visudo
? If the latter then that's all you need, once you save the file in visudo it'll parse it and make sure it's valid syntax (otherwise you could break sudo completely).
- Edited
ReillyBrogan yes I saved to /etc/sudoers/visudo
And is working fine so far,