Results 1 to 4 of 4

Thread: trouble with sudoers -- parse error in Line -1

  1. #1
    pkorte-upb NNTP User

    Default trouble with sudoers -- parse error in Line -1

    Hello,

    i have a parse error in /etc/sudoers near line -1, but only as user

    my config:
    Code:
    Defaults always_set_home
    Defaults env_reset
    
    root    ALL=(ALL) ALL
    nrpe    ALL=NOPASSWD:/usr/lib/nagios/plugins/check_configs
    nrpe    ALL=NOPASSWD:/usr/bin/dsmc query filespace
    I don't know why?

  2. #2
    Join Date
    Jun 2008
    Location
    PHX
    Posts
    481

    Default Re: trouble with sudoers -- parse error in Line -1

    Try:
    Defaults:<username> always_set_home
    Defaults:<username> env_reset
    <>---><^>

  3. #3
    pkorte-upb NNTP User

    Default Re: trouble with sudoers -- parse error in Line -1

    my new config, but the error is still the same

    Code:
    #Defaults always_set_home
    #Defaults env_reset
    
    Defaults:pkorte always_set_home
    Defaults:pkorte env_reset
    
    root    ALL = (ALL) ALL
    
    nrpe    ALL =  NOPASSWD: /usr/lib/nagios/plugins/check_configs
    nrpe    ALL =  NOPASSWD: /usr/bin/dsmc query filespace

  4. #4
    pkorte-upb NNTP User

    Default Re: trouble with sudoers -- parse error in Line -1


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •