From: unruh@invalid.ca   
      
   On 2019-10-21, Sidney_Kotic wrote:   
   > On 10/21/19 8:57 AM, Carlos E.R. wrote:   
   >   
   >> You might make a backup of /etc/sudoers, and then cp   
   >> /etc/sudoers.YaST2.new to /etc/sudoers. Mind that you have to recreate   
   >> the correct permissions. Then test it. I do not warranty it works, nor   
   >> that it does what you intended - as William, I do not understand the   
   >> meaning of "add myuserid to sudo".   
   >   
   > OK, massive confusion:   
   > I used yast from the gui. I gave it the root password to use. Then:   
   > Security and Users -> Sudo -> Rules for sudo -> Add   
   > From there I added User kant, Host ALL, RunAs root, Command ALL, Parameters   
   ALL   
   > It accepted the OK and put me back one screen. When I did OK again it said   
   > Write the settings   
   > and then said:   
   > ERROR   
   > Cannot write settings.   
      
   Well, that would seem to be a problem with permissions of the   
   /etc/sudoers file, or the /etc/sudoers.d directory, and write permissions   
   on that.   
   Make sure both have write permission for root.   
   >   
   > My userid is my name on this computer, the one I login with.   
   >   
   > Try to copy file:   
   > Nope, what I did as root:   
   > snail:/etc # cp sudoers sudoers.ootb   
   > snail:/etc # cp sudoers.YaST2.new sudoers   
   >   
   > What happens as me:   
   > kant@snail:~> sudo df   
   > >>> /etc/sudoers: syntax error near line 79 <<<   
   > sudo: parse error in /etc/sudoers near line 79   
   > sudo: no valid sudoers sources found, quitting   
   > sudo: unable to initialize policy plugin   
      
   Look at /etc/sudoers line 79 to see what it says.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|