![]() |
Need help sudoers file - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: Software - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=5) +--- Forum: Other (https://www.linuxliteos.com/forums/forumdisplay.php?fid=20) +--- Thread: Need help sudoers file (/showthread.php?tid=2688) Pages:
1
2
|
Need help sudoers file - chicknfangz - 02-16-2016 Hi jerry or anybody else I need some help please :'( I messerd with something in /etc/sudoers in terminal and deleted the # in root and ALL ALL ALL. I shouldn't have and asked first :'( :'( :'( I get this now Code: >>> /etc/sudoers: syntax error near line 19 <<< I was trying to go into SU in terminal but it was saying this su: Authentication failure was trying to update grub with this but you have to be in root mode Code: grub-mkconfig -o /boot/grub/grub.cfg Can you help me fix this please Thank you Re: Need help sudoers file - rokytnji - 02-17-2016 My stock /etc/sudoers file below. Code: harry@misohorny1:~$ sudo -i You can make a new one and fix yours by replacing it with mine. Just more info below Code: root@misohorny1:~# cd /etc/sudoers.d Re: Need help sudoers file - chicknfangz - 02-17-2016 How do i do this ![]() Re: Need help sudoers file - chicknfangz - 02-17-2016 Waiting........ ![]() Re: Need help sudoers file - Wirezfree - 02-17-2016 Hi, The forum is really, really good, the best in my opinion. It relies on the goodwill and knowledge of folks on here. You may have to wait a little for the right person to come along... Re: Need help sudoers file - chicknfangz - 02-17-2016 OK thank you Wirezfree. Thats what i will be doing ;D Re: Need help sudoers file - shaggytwodope - 02-17-2016 Carefully enter this command: Code: pkexec visudo Enter your password, and your editor will open with the sudoers file. You can now do one of many things, use the default example posted above, or share the offending lines in the error message you had with us to figure out for you. That aside, why do you need to touch grub? Show caution with that command. Do not ever use any other means to modify sudoers, outside of the normal visudo command. It will notify you of errors before saving it, and even offer prompt to edit the file again. Re: Need help sudoers file - chicknfangz - 02-17-2016 (02-17-2016, 08:45 PM)shaggytwodope link Wrote:Carefully enter this command: use the default example posted above, or share the offending lines in the error message you had with us to figure out for you. I did share them above. How do i use that example. It has hes username in it. So what do i do and how do i do this? I was trying to go into SU root. But it said su: Authentication failure. And i was typing my password correctly. SO thats not an issue Re: Need help sudoers file - shaggytwodope - 02-17-2016 Understand this, the output of your original post means nothing to me. As I can not see any modifications you've made. Now if you use the command I posted and copy the lines mentioned in your original post and share them... (line 19 and 25) we can FIX them for you. Otherwise you can simply use the default shared. With no modifcations this is the default sudoers file: Code: # Using the command Code: pkexec visudo Will allow you to edit the sudoers file properly, and you can resume using sudo after this is solved. Re: Need help sudoers file - Valtam - 02-17-2016 (02-17-2016, 10:30 PM)chicknfangz link Wrote:I did share them above. If you can read? Try to be respectful to those offering their time to help you, that kind of response will put people off wanting to help you. The tone of the Forum here is friendly, and we will jealously defend that image. |