home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.suse      Suse is actually not that bad      138,051 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 136,894 of 138,051   
   William Unruh to kant@have.it   
   Re: sudo   
   22 Oct 19 14:13:48   
   
   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)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca