hahahahahaha “ooooooohhhhhh” I said to myself.
Well, thank you for coming back and making what wasn’t clear to me clear @dalto.
But difference being is I am still able to edit visudo on vanilla Arch and it does still work, but I wasn’t able to on EnOS.
Anyway cheers thanks for that. I’ll defo get updated on it.
Yes, extremely happy to be here! Of course I’ll mention about using Arch system.
Last point I’ll add, obviously it wasn’t just that. There were just a number of things that were going wrong and hrs passing by not being able to deal with simple things.
Of course if I had just come on here and asked all my questions they were all simple fixes. But didn’t want to especially thinking I should have known etc.
lol it just clicked again. When I was reinstalling I got annoyed thinking why is it when I’m root and open up sudoers with visudo is it read only. lol did ls -la then just changed the permissions.
wiki says:
The configuration file for sudo is
/etc/sudoers. It should always be edited with the visudo(8) command. visudo locks thesudoersfile, saves edits to a temporary file, and checks it for syntax errors before copying it to/etc/sudoers.Warning:
- It is imperative that
sudoersbe free of syntax errors! Any error makes sudo unusable. Always edit it with visudo to prevent errors.- visudo(8) warns that configuring visudo to honor the user environment variables for their editor of choice may be a security hole, since it allows the user with visudo privileges to run arbitrary commands as root without logging simply by setting that variable to something else.
The default editor for visudo is vi. The sudo package is compiled with
--with-env-editorand honors the use of theSUDO_EDITOR,VISUALandEDITORvariables.EDITORis not used whenVISUALis set.To establish nano as the visudo editor for the duration of the current shell session, export
EDITOR=nano; to use a different editor just once simply set the variable before calling visudo:EDITOR=nano visudo
Alternatively you may edit a copy of the
/etc/sudoersfile and check it usingvisudo -c /copy/of/sudoers. This might come in handy in case you want to circumvent locking the file with visudo.
So we can still use visudo @dalto
lol I’m still a bit confused really, don’t know why I needed to change the permissions for root to be able to write to sudoers lol and the permissions have changed back to read only for root on their own. But my changes i.e my user can still use sudo without password.
Can leave it at that tho, I think I need to understand what you were talking about when you mentioned
drop-ins