Home > Syntax Error > Parse Error In Etc Sudoers Near

Parse Error In Etc Sudoers Near


Not the answer you're looking for? You can then double click on the 'etc' folder and then double click the sudoers file, it should open in gedit. Thanks. –Rob Wilkerson Jan 23 '13 at 14:25 add a comment| up vote 0 down vote I screwed up the sudoers file to find out that I don't remember the root For details and our forum data attribution, retention and privacy policy, see here Download your favorite Linux distribution at LQ ISO. weblink

I did sudo vim /etc/sudoers and added the following to it: Cmnd_Alias GEM_INSTALL = /usr/bin/gem install * Cmnd_Alias GEM_UNINSTALL = /usr/bin/gem uninstall * vitaly ALL=NOPASSWD GEM_INSTALL vitaly ALL=NOPASSWD GEM_UNINSTALL The intention was to grant Results 1 to 8 of 8 Thread: Can't Access Sudoers File in Ubuntu, Kubuntu, Xubuntu Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest In principle, this could be another Linux or a live flash, not necessarily Windows.

Etc/sudoers Syntax Error Near Line 17

If it was I would use "visudo" /var/log/auth.log shows the following: Feb 23 14:09:15 A-Server sudo: xxxadmin : parse error in /etc/sudoers near line 24 ; TTY=pts/1 ; PWD=/home/xxxadmin ; COMMAND=cat Also another way to fix it if you have the root password is to simply do 'su' then edit the file. –Max Mar 24 '11 at 9:07 @user64204 Interesting... Rohit R (rr0hit) said on 2010-09-16: #4 do sudo gedit /etc/sudoers paste the contents of the file here close gedit without any changes to the file. Registration is quick, simple and absolutely free.

Even the /etc/sudoers file itself has a comment warning you to always use visudo to edit it. –ThatGraemeGuy Mar 24 '11 at 8:45 this is why i now always Found out I had to install a virtual box for windows or use Amarok. Why is it a bad idea for management to have constant access to every employee's inbox What is the most expensive item I could buy with £50? /etc/sudoers.d/50_stack_sh: Syntax Error Near Line 1 Psychocat's method had me boot into recovery mode, select "drop to root shell prompt", enter "mount -o rw, remount /" and response is "mount: special device remount does not exist".

I was saved with this: reboot hold shift key while booting to have option for recovery mode (enter it) enter command line as root (second last option at my grub menu) share|improve this answer edited Apr 19 '12 at 1:55 tantrix 1032 answered Nov 20 '11 at 17:08 Caesium 8,17222443 4 hindsight is 20/20 –code_monk Jan 9 '15 at 1:57 3 vitaly it, osx, devops I just did something pretty stupid. his explanation Dear fellas, If you cant open the sudoers file then just make a newfile in home dir and then sudo paste it in /etc with name sudoers.

Would you like to answer one of these unanswered questions instead? /etc/sudoers Is World Writable asked 4 years ago viewed 201667 times active 1 month ago Linked 11 How to rename sudoers back to its original naming? 3 sudo: can't open /etc/sudoers: Permission denied 2 “no The time now is 12:11 AM. You may prefer to use hostnames (perhap using ## wildcards for entire domains) or IP addresses instead. # Host_Alias FILESERVERS = fs1, fs2 # Host_Alias MAILSERVERS = smtp, smtp2 ## User

Sudo Parse Error In Etc Sudoers

more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science What should I expect to see/do after the 2nd step? Etc/sudoers Syntax Error Near Line 17 Ask a question Edit question Subscribers Subscribe Subscribe someone else • Take the tour • Read the guide © 2004-2016 CanonicalLtd. • Terms of use • Contact Launchpad Support • Fix Broken Sudoers File Are "ŝati" and "plaĉi al" interchangeable?

Exploded Suffixes Does the recent news of "ten times more galaxies" imply that there is correspondingly less dark matter? have a peek at these guys share|improve this answer edited Sep 15 '13 at 16:52 Kevin Bowen 10.4k104759 answered Sep 15 '13 at 1:09 Igor Parra 1445 add a comment| up vote 2 down vote You can No root prompt, nothing. The ‘Q’ option should be used with extreme care because if visudo believes there to be a parse error, so will sudo and no one will be able to sudo again Sudo: No Valid Sudoers Sources Found, Quitting Sudo: Unable To Initialize Policy Plugin

Did Sputnik 1 have attitude control? Remove the following entries from the end of the /etc/sudoers file with visudo. #includedir /etc/sudoers.d share|improve this answer edited Feb 24 '12 at 3:30 jokerdino♦ 27.1k19100181 answered Feb 23 '12 at Thanks –Dave Oct 13 '14 at 6:15 6 But you need to be root. http://smartphpstatistics.com/syntax-error/parse-error-syntax-error-unexpected-t-paamayim-nekudotayim-wordpress.html But the problem is even more basic then that.

It throws out an error and not allowing me to edit again up vote 158 down vote favorite 63 How do I edit an invalid visudo file? No Valid Sudoers Sources Found Quitting Centos Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the I forgot the : just after the NOPASSWD.

Solution: rebooted under Windows (I have a dual boot) and edited the file using ext2fsd (you have to reboot after the installation).

Tell company that I went to interview but interviewer did not respect start time "all empires will suffer the same fate should the lessons from history go unlearnt" Can Communism become Tried both suggestions and neither worked. Please visit this page to clear all LQ-related cookies. Default Sudoers File This riddle could be extremely useful Can two integer polynomials touch in an irrational point?

Project going on longer than expected - how to bring it up to client? What are Imperial officers wearing here? Ceaser Webb (ceaserw) said on 2010-09-18: #12 I didn't go messing with the sudoers file. http://smartphpstatistics.com/syntax-error/parse-error-syntax-error-unexpected-t-string-expecting-t-variable-or-39-39.html If you have physical access to the machine, SSH is unnecessary; just open a Terminal window and run that pkexec command.

How do computers remember where they store things? so... –tomwrong Nov 22 '14 at 9:46 add a comment| up vote 0 down vote If u messed up your sudoers file.You'll need to: Reboot into recovery mode (hit escape during Exploded Suffixes Is it appropriate to tell my coworker my mom passed away? Is the mass of a singular star almost constant throughout it's life?

I bought a ipod then found out Ubunto will not support itunes. Join our community today! Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. My situation fit "Case 2" of repair instructions but it wouldn't work with any sudo command so I entered "visudo" at root prompt and then used NikTh's "/etc/sudoers" sample file to

The moral of this story: read the error message, properly. –richard May 29 '15 at 17:41 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted that worked. Ceaser Webb (ceaserw) said on 2010-09-17: #8 I still received this error in recovery mode. Please click the link in the confirmation email to activate your subscription.

This will give you a shell (without GUI) with root rights and you can edit the sudoers file with s.th. Ask Ubuntu works best with JavaScript enabled UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. The contents of my sudoers file are: ## Sudoers allows particular users to run various commands as ## the root user, without needing the root password. ## ## Examples are provided Unix & Linux Stack Exchange works best with JavaScript enabled current community blog chat Server Fault Meta Server Fault your communities Sign up or log in to customize your list.

If you open the folder with the really long hexadecimal name you will start to see your OS files on the internal drive. asked 5 years ago viewed 10234 times active 5 years ago Linked 8 Ubuntu : borked my sudoers file, how can I fix it? share|improve this answer answered Jul 3 '14 at 9:41 ajile 1283 It worked when i logged in using super user (su -) and executed above steps.. Hot Network Questions Security Patch SUPEE-8788 - Possible Problems?

If you are so inexperienced with the OS why did you go messing with the sudoers file? A silly typo –Gaurav May 29 '15 at 17:12 add a comment| Not the answer you're looking for? If you'd like to contribute content, let us know. Is there a role with more responsibility? (KevinC's) Triangular DeciDigits Sequence How would they learn astronomy, those who don't see the stars?