Find the answer to your Linux question:
Results 1 to 2 of 2
Hi guys, I am using Zabbix, a network monitoring tool as an application to monitor clients remotely. So, currently i have this applns. agent installed in various remote servers and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209

    Post Securing a login with root attributes


    Hi guys,

    I am using Zabbix, a network monitoring tool as an application to monitor clients remotely.

    So, currently i have this applns. agent installed in various remote servers and the appln. server in my local server.

    Now, i need to restart a service when it fails in these remote servers.
    For which, i need a user with root attributes at the remote servers.
    So i added a user zabbix in sudoers as
    Code:
    zabbix ALL=(ALL) NOPASSWD:ALL
    the Nopasswd is set cause i cant pass my password through remote command execution.

    Since, this user is almost a root.
    I wanted to know what are the ways to protect the user zabbix with these sudo rights?

  2. #2
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209

    Exclamation

    Hi again,
    I wanted to know if having a entry like the below
    can ed ssh or execute any commands as sudo using "-u zabbix" ?

    Code:
    Defaults        !lecture,tty_tickets,!fqdn
    
    # User privilege specification
    root    ALL=(ALL) ALL
    zabbix  ALL=(root,ed) NOPASSWD:ALL
    ps: i had modified login shel of zabbix as /bin/false

Posting Permissions

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