Sudo doesn't work, reporting error in sudoers file, wierd behaviour

Trying to do something with sudo, it returns:
>>> /etc/sudoers: syntax error near line 5 <<<
sudo: parse error in /etc/sudoers near line 5
sudo: no valid sudoers sources found, quitting
My /etc/sudoers:
Defaults env_reset
root ALL=(ALL) ALL
alex ALL=(ALL) ALL
Defaults:alex timestamp_timeout=0
Where is my error?
Last edited by Mr. Alex (2010-10-29 14:20:42)

this is my current sudoers.pacnew....looks a bit weird. the early versions have been more clear...
## sudoers file.
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
## See the sudoers man page for the details on how to write a sudoers file.
## Host alias specification
## Groups of machines. These may include host names (optionally with wildcards),
## IP addresses, network numbers or netgroups.
# Host_Alias WEBSERVERS = www1, www2, www3
## User alias specification
## Groups of users. These may consist of user names, uids, Unix groups,
## or netgroups.
# User_Alias ADMINS = millert, dowdy, mikef
## Cmnd alias specification
## Groups of commands. Often used to group related commands together.
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
# /usr/bin/pkill, /usr/bin/top
## Defaults specification
## You may wish to keep some of the following environment variables
## when running commands via sudo.
## Locale settings
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
## Run X applications through sudo; HOME is used to find the
## .Xauthority file. Note that other programs use HOME to find
## configuration files and this may lead to privilege escalation!
# Defaults env_keep += "HOME"
## X11 resource path settings
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
## Desktop path settings
# Defaults env_keep += "QTDIR KDEDIR"
## Allow sudo-run commands to inherit the callers' ConsoleKit session
# Defaults env_keep += "XDG_SESSION_COOKIE"
## Uncomment to enable special input methods. Care should be taken as
## this may allow users to subvert the command being run via sudo.
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
## Uncomment to enable logging of a command's output, except for
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
# Defaults log_output
# Defaults!/usr/bin/sudoreplay !log_output
# Defaults!/usr/local/bin/sudoreplay !log_output
# Defaults!/sbin/reboot !log_output
my current sudoers file:
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
# See the sudoers man page for the details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
Last edited by linux-ka (2010-10-29 14:34:59)

Similar Messages

  • Sudo doesn't work anymore, not permitting me to enter password

    Since two days, sudo doesn't work for me anymore. When I do
    sudo any_command
    I get:
    Sorry, try again.
    Sorry, try again.
    Sorry, try again.
    sudo: 3 incorrect password attempts
    I updated my server two days ago, but I cannot say whether it's related to my problem.
    Here's the result of doing
    tail /var/log/sudolog
    as root (su works):
    Oct 13 12:35:33 : kalasusi : 3 incorrect password attempts ; TTY=pts/2 ; PWD=/etc; USER=root ; COMMAND=/bin/ls
    Here's the result of doing
    tail /var/log/auth.log
    as root (the last new lines after trying sudo again with my normal user):
    Oct 13 14:52:59 myserver sudo: pam_unix(sudo:auth): authentication failure; logname=kalasusi uid=0 euid=0 tty=/dev/pts/1 ruser=kalasusi rhost= user=kalasusi
    Oct 13 14:53:05 myserver sudo: kalasusi : 3 incorrect password attempts ; TTY=pts/1 ; PWD=/home/kalasusi ; USER=root ; COMMAND=/bin/ls
    For some background info, the sudo troubleshooting guide identifies such a problem (the third Q&A):
    Q) Sudo never gives me a chance to enter a password using PAM, it just
       says 'Sorry, try again.' three times and exits.
    A) You didn't setup PAM to work with sudo.  On Redhat Linux or Fedora
       Core this generally means installing sample.pam as /etc/pam.d/sudo.
       See the sample.pam file for hints on what to use for other Linux
       systems.
    The only problem is that I didn't change anything from the Arch stock configuration of /etc/pam.d/sudo, and it used to work. Here's the result of
    cat /etc/pam.d/sudo
    on my system:
    #%PAM-1.0
    auth required pam_unix.so
    auth required pam_nologin.so
    Something else that comes into my mind that might be connected with the problem is that at some point while doing maintenance on the server, I received the following error:
    Authentication token manipulation error.
    Unfortunately I don't remember in what context it was or whether the problem started afterwards. I believe though the problem is either that or the update, because those are the two extraordinary things that happened on the server since the problem started.
    Anyone have any ideas? Thanks in advance!
    Last edited by kalasusi (2010-10-13 23:20:14)

    [2010-10-11 22:08] Running 'pacman -Syu'
    [2010-10-11 22:08] synchronizing package lists
    [2010-10-11 22:10] starting full system upgrade
    [2010-10-11 22:12] Generating locales...
    [2010-10-11 22:12] en_US.UTF-8... done
    [2010-10-11 22:12] en_US.ISO-8859-1... done
    [2010-10-11 22:12] Generation complete.
    [2010-10-11 22:12] upgraded glibc (2.12.1-1 -> 2.12.1-2)
    [2010-10-11 22:12] upgraded binutils (2.20.1-3 -> 2.20.1-4)
    [2010-10-11 22:12] upgraded libmysqlclient (5.1.50-1 -> 5.1.51-1)
    [2010-10-11 22:12] upgraded logrotate (3.7.8-1 -> 3.7.9-1)
    [2010-10-11 22:12] upgraded mysql-clients (5.1.50-1 -> 5.1.51-1)
    [2010-10-11 22:13] upgraded mysql (5.1.50-1 -> 5.1.51-1)
    [2010-10-11 22:13] upgraded php (5.3.3-1 -> 5.3.3-2)
    [2010-10-11 22:13] upgraded php-cgi (5.3.3-1 -> 5.3.3-2)
    [2010-10-11 22:13] upgraded php-gd (5.3.3-1 -> 5.3.3-2)
    [2010-10-11 22:13] upgraded php-mcrypt (5.3.3-1 -> 5.3.3-2)
    [2010-10-11 14:19] Running 'pacman -S apache'
    [2010-10-11 14:21] installed apr (1.4.2-1)
    [2010-10-11 14:21] installed unixodbc (2.3.0-1)
    [2010-10-11 14:21] installed apr-util (1.3.10-1)
    [2010-10-11 14:21] installed apache (2.2.16-1)
    [2010-10-11 14:28] Running 'pacman -S php-apache'
    [2010-10-11 14:28] installed php-apache (5.3.3-2)
    [2010-10-12 19:46] Running 'pacman -Rns php-apache'
    [2010-10-12 19:48] removed php-apache (5.3.3-2)
    [2010-10-12 19:51] Running 'pacman -Rns apache'
    [2010-10-12 19:51] removed apache (2.2.16-1)
    [2010-10-12 19:51] removed apr-util (1.3.10-1)
    [2010-10-12 19:51] removed unixodbc (2.3.0-1)
    [2010-10-12 19:51] removed apr (1.4.2-1)
    [2010-10-12 19:52] Running 'pacman -S nginx'
    [2010-10-12 19:52] installed nginx (0.8.52-2)
    [2010-10-12 20:01] Running 'pacman -S php-fpm'
    [2010-10-12 20:01] installed libevent (1.4.14b-1)
    [2010-10-12 20:01] installed php-fpm (5.3.3-2)
    [2010-10-12 13:45] Running 'pacman -Rns nginx'
    [2010-10-12 13:45] removed nginx (0.8.52-2)
    [2010-10-12 13:46] Running 'pacman -Rns php-fpm'
    [2010-10-12 13:46] removed php-fpm (5.3.3-2)
    [2010-10-12 13:46] removed libevent (1.4.14b-1)
    As you can see, I installed (and removed) apache and nginx, as I was testing their performance. I don't think it's related to this issue, but I'm adding this here for the sake of completeness.
    Last edited by kalasusi (2010-10-13 23:26:13)

  • Am unable to install CS5 on mac running yosemite. Tried installing JavaFor OSX, it still doesn't  work. Error message reads "inconsistency in the installer database"

    Am unable to install CS5 on mac running yosemite. Tried installing JavaFor OSX, it still doesn't  work. Error message reads "inconsistency in the installer database"

    remove your caps database.  this shows the location for cs3.  make the obvious changes for cs5.
    Error "...Installer Database is Corrupt..." when you install Adobe Creative Suite 3 products

  • Command-Tab App Switcher doesn't work (related to corrupt .plist file error?)

    Hi folks,
    The other day, Drive Genius 4 reported on a file corruption:  ~/Library/Preferences/System Mac.plist file. I tried to find the file but it didn't appear to exist.
    Today, a strange phenomenon occurred which I think may be related. Strangest thing. I was using Safari, had several tabs open when, suddenly, I lost all input to any links in Safari and system wide as well, other than the cursor being able to move around the display. This dysfunction also included the Command-Tab App Switcher, though they keyboard text function still worked. I could enter text in fields.
    I tried Force Quit Apps but I had to shutdown and reboot using the Power button. The reboot seemed to remedy the situation and most controls and keyboard functions returned except for the Command-Tab App Switcher.
    In Safari, I used History/Restore Last Open Page, and when the searched for pages came up, they were blank - I was informed that there was no internet connection. Wi-Fi showed still on but grayed out, which could be logical. Also, this is when I noticed that the key repeat function wasn’t working. In System Prefs, I did manage to change the key repeat rate, which accelerates the backspace erase function but there is no key repeat, itself.
    All of this, of course, might be pointing to that system file error. Whether it is that hidden Mac.plist file corruption I don’t know.
    In any event, first thing I did was to run Permissions Repair. At one point, about 2/3rds of the way in, the progress bar hung for a few minutes and then finished the last third in a split second. In the Repair Permissions log there was no /Mac.plist file among those repaired.
    Additionally in Sys Prefs, I tested for Tab key response by refocusing the radio buttons in the Full Keyboard Access option under Keyboard/Shortcuts panel from "Text boxes and lists only" to "All controls.” The refocus worked because now pressing Tab does move the cursor through every control. But still no Command-Tab App Switcher. In Spotlight, I did find the App Switcher.app but it would not open, because it is “Damaged or Missing.” App Switcher preferences are  also not accessible.
    In Terminal I changed directories and do see the /Mac.plist file under discussion. I suppose I could -rm the file but I’m reluctant without knowing more about what other anomalies might result. The App Switcher is one of the Mac’s best utilities (thanks to er, Microsoft.) If the /Mac.plist file will refresh from the current status, no problem, I would think.
    Has anyone experienced anything like this? Any suggestions? Thanks a whole lot in advance for your time and consideration in this!
    All best,
    David

    First, get rid of the worthless, time-wasting "Drive Genius" according to its developer's instructions. Never install any so-called "utility" again.
    Don't waste time repairing permissions again, either, unless you have an indication of a permission error involving system files, which you don't and probably never will.
    Never delete any file in the shell (Terminal) for any reason.
    There is no built-in application called "App Switcher." There is no built-in file named "System Mac.plist" either.
    If command-tab application switching still doesn't work after you get rid of "Drive Genius," see below.
    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Fresh install of iTunes doesn't work(unknown error -50)

    I just installed iTunes 7.0.2 via the software update and after the agreeing to the software license agreement this happens:
    The iTunes application could not be opened. An unknown error occurred(-50)
    Repairing software permissions didn't solve the problem. Reinstalling doesn't work. Quiting everything else and then try to start it doesn't work either. I then deleted everything that had iTunes in it and reinstalled the app. Still a no go.
    The weird thing is, the other accounts are able to start iTunes and move through the setup process(search for iTunes library, music store), so there is something wrong with my account that doesn't make iTunes run properly.
    How do I get iTunes to run? It's too quiet in here.
    17" Powerbook G4   Mac OS X (10.3.9)  

    When I click on the symbol top left on the sreen, with left mousebutton, a popupmenu shows.
    I select menu > awesome > manual : nothing happens
    I select menu > open terminal : nothing happens
    I tried shortcut keys too....
    Windows + Enter > nothing happens?
    Thx for the help!

  • Download doesn't work  No error message

    I am trying hard to download oc4j release 2 and how-to-jazn sample .
    Site doesn't provide any error message if there is any error message if server is down . There is no problem if I dowm load from other sites.
    Can some one answer my question
    Thanks Praful

    Many people are having this problem for the last couple of days. This is a problem that Apple has to fix. If you look around the forum, you will see many, many discusssions about this and they have been going on for a few days.
    According to Fly150 in another discussion, this is a workaround - for the time being.
    If you want to update the Apps while waiting for Apple to fix Updates:
    1. Go to App Store
    2. Select Purchased
    3. Select All
    4. Scroll down to find the Apps showing update
    5. Select update on the Apps
    This should update the Apps and get rid of the update count in App Store.

  • WRT54GL Need the TFTP EXE link or file please, FTP link doesn't work 550 error.

    Bricked the router, bad flash. Power LED is flashing.
    Need the TFTP excutable please, FTP link doesn't work. 
    Thanks.

    Try this link to unbrick the Linksys Router.Download 44.3 KB the TFTP utility.
    Message Edited by Wizzard on 10-07-2009 09:38 AM

  • Copy Function Doesn't Work After Updating user.js File

    I tried the Copy Function at the web site www.gogvo.com and got an error message from Firefox that Copy wasn't enabled. I got more info and created a user.js file in my Profile with the above site inserted following directions on the Troubleshooting Help page. I restarted Firefox but still can't use the Copy Function when I right-click a highlighted field to Copy. I have no problem when I use Internet Explorer 9 with my Windows 7 Home Premium. I have the latest version of Firefox. I have no problem copying on other sites, such as MSN Hotmail.

    I tried {Ctrl+C} and that doesn't work. I deleted the user.js file and downloaded the allowclipboard-helper file extension, and that doesn't work. I only have this Copy/Paste problem HERE: [http://www.gogvo.com/affiliates/optin_message.php GVO Responder Opt-in Message Edit] and don't have any Copy/Paste problems anywhere else. Is there another solution to try?

  • ST05 doesn't work : can't open trace file

    Hi,
    I am used to work with ST05 for years, but today, the trace DOESN'T WORK !! The trace activation and deactivation seem okay, but display triggers the following 2 errors : "File end of performance trace file detected -> See long text" (message 0S161), and "Could not open performance trace file" (message 0S113). I deleted all trace files in ST01, and tried again, but still the same errors.
    I couldn't find anything in sap forums, notes, etc. Sometimes, it may work again, but only for a few seconds. Strange. Maybe disk full? Or memory? (buffers are undersized, total memory is 1GB)
    But remember: it was working with the roughly same config since the beginning.
    Any ideas?
    Thx a lot.

    @Rob, how do you know? :-D (sorry but I must cleanup my history of watches (of my own threads too) because it's impossible to display the watch page (so that to turn forums watch off, allow being watched config , etc.) when there are too many thread watches)
    @Gana, maybe: ask the server to be restarted... and ask the admins to see if there are disk or network issues...

  • Lightbox (jQuery Lightbox Evolution) made in Adobe Edge, doesn´t work in Adobe Muse (oam file)

    Hi!, I got a problem that I can´t fix it, or I don´t know how to do it in Adobe Muse.
    First I have the Jquery Lightbox Evolution ready to do it in Adobe Edge.
    I could work the lightbox in Edge perfectly doing this:
    1. I added the JS files of the Jquery Lightbox Evolution into EDGE :
    2. I wrote this code in STAGE - COMPOSITIONREADY:
    yepnope({load: "js/lightbox/themes/classic/jquery.lightbox.css",complete: function() {}});
    3. I wrote this CLICK code into the blue box animation;
    {$.lightbox("images/4.jpg");return false;};
    4. Now, if I do a Preview, and if I click into the blue box animation, appears the Jquery Lightbox Evolution, like I want:
    5. Perfect, I publish the project like an Animate Deployment Package (.oam) to import this into Muse.
    6. Now the problems begins, I import the Edge animation into my Muse project, but when I see the preview of my page, the lightbox doesn´t work, Muse don´t recognize the lightbox CSS file because I see something like that:
    The blue box animation work perfectly into Muse!, but when I click on it and when it should appear the Jquery Lightbox, happens that problem, Muse don´t recognize the CSS file and the "lightbox" appears INTO the box animation, like if I put a "_self" code.
    Really I don´t know how to fix that, should import the CSS file into Muse? should write a code into Page Properties- Metadata?, write a code inserting a HTML?, change some code in Adobe Edge?
    Thanks!!!!

    I´m sorry, but any ideas how to fix that?

  • Edit in Photoshop CS6 doesn't work with Nikon D800E NEF files in LR 4.1 RC

    The "Edit in Photoshop CS6" menu item or shortcut (cmd+e) doesn't work for NEF files from a Nikon D800E in Lightroom 4.1 RC.  What happens is that LR looks like it goes through all its normal paces, and launches Photoshop, and the CPU spins, but then nothing happens in Photoshop, the image never opens.
    This works fine for NEF files from other cameras.

    Set up CS6 as an secondary editor, and then it will use LR's built-in ACR to process the files, instead of the external ACR with CS6. The external ACR 6.7 also processes D800, just not ACR 7 just yet.
    Bob Frost

  • Dashboard doesn't work and com.apple.dashboard* files doesn't exist

    Like the headline says, my dashboard doesn't work at all, and my com.apple.dashboard* -files doesn't exist in the preferences file.
    Is there annyway to redownload or reinstall it?
    Please help!

    Hello there,
    Have you tried killing the Dock Process through Activity monitoring and then relaunching it? I would also try logging out and then back in or doing a complete reboot of the machine to see if that helps.
    If still no luck, it may be a good idea to trash the dashboard preference file.
    The two dashboard preference files are in the following directory:
    yourusername -> Library -> Preferences ->
    The file names are:
    com.apple.dashboard.client.plist
    com.apple.dashboard.plist
    Hope this helps.
    B-rock

  • File, edit, etc options no longer at the top of the screen since upgrade. My right-click doesn't work so I need the File, Edit options. How can I bring them back?

    I only have Firefox tabs now and have not memorized all the Command keys to use when right clicking doesn't work. How can I access "File", "edit", etc....they used to be at the top of the screen before upgrade. I need to be able to copy/paste easily. Thank you.

    The menu toolbar is hidden at default in Vista. You can use F11 to show it temporarily. Please also read this article:
    http://support.mozilla.com/en-US/kb/Menu%20bar%20is%20missing

  • ATV doesn't work with mp4 and mov files

    Apple TV doesn't play the mp4 or mov files that are in my iTunes Library.
    ATV plays only m4v video.
    How can I do?
    Thanks,
    Lud

    Thanks Rudegar and Churchill for your answer and sorry if I answer so late.
    I didn't create such files... I only downloded them from internet...
    I have tried to convert them with "Any video converter" bought on App Store. If I tried to convert the files in a ATV format the software creates a m4v file, but offen the audio is out of sync...

  • PIXMA MG5420: scanner doesn't work, get error message that driver will be closed 3 202 19

    For some reason, the scanner will not work.   Initially when I click on Autoscan on the PC menu  the message reads that the scanner is warming up.  Then I get an Error Message:  Internal Error Occurred Scanner Driver Will be Closed.  I don' t know what I'm doing wrong all of  a sudden.  There is only one computer in the network, mine, and I'm trying to scan from the 5420 via a USB cable into my HP laptop (Windows 8.1 64 bit).
    Copying and printing work fine.  Where do I even start?

    Hi ellenrozsa,
    The IJ Network Scanner Selector EX application will need to be running in order for you to scan wirelessly.  If the IJ Network Scanner Selector EX is running, its icon appears in the notification area of the taskbar as shown below:
    If the icon is not displayed in the notification area of the taskbar, please click IJ Network Scanner Selector EX on the Start screen.  If IJ Network Scanner Selector EX is not displayed on the Start screen, select the Search charm, then search for "IJ Network Scanner Selector EX".
    In the notification area of the taskbar, right-click the IJ Network Scanner Selector EX icon and select Settings....
    Select your scanner or printer from Scanners, then click the OK button.
    Hope this helps!
    This didn't answer your question or issue? Find more help at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

Maybe you are looking for

  • Blocking on a Router

    I have enabled blocking on a router to fire when a certain sig fires. this has been working for a while, I can see the ACL on the router with the host being denied access,so I know that it has been working. The sig fired today and the host was added

  • Saving Captured picture from ADF Mobile Application into Remote Database

    Hi, I am developing adf mobile application by using Device Demo Application from ADF Mobile Samples.I had deployed this application into Android mobile and capturing picture. My Question is how can i save this captured pictured into Remote Database.

  • Parsing out numbers

    Trying to parse out the number strings into its own columns with this expression: WITH T as (SELECT  '53-2010-2-101' test_string FROM DUAL union all SELECT  '2219-2010-3-22' FROM DUAL union all SELECT  '236350-2010-4-3' FROM DUAL) SELECT SUBSTR(test_

  • CD Text not working in 7.0.1 on iBook G4

    When I saw the new "Include CD Text" option I thought "Wow! Apple actually listened to the feedback I sent them". Unfortunately it doesn't work. Using Toast with the same blank CDs in the same drive gives me CD Text I can see in the car. Using iTunes

  • Oracle EPM Newer version

    Does anyone know when Oracle is likely to release a newer version of EPM. I mean the version that comes after the 11.1.2 Thanks Neal