Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-886

vppctl should not require root access

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 17.10
    • None
    • VPP API Infra
    • None
    • VPP image running is taken from master from around 5/25/17 on a CentOS 7 server.

      VPP image running is taken from master from around 5/25/17 on a CentOS 7 server. I created a new user and added the user to vpp group. Then try to run a command. Prompted for 'sudo' password.

      I have vpp group in my startup file:

      # vi /etc/vpp/startup.conf
      :
      api-segment {
        gid vpp
      }
      :
      

      Created new user and added to VPP group:

      # useradd larry
      # passwd larry
      # usermod -a -G vpp larry
      

      Logged in as new user 'larry':

      $ groups larry
      larry : larry vpp
      

      vpp_api_test works as expected.

      $ vpp_api_test
      vat# exec sh interface
                    Name               Idx       State          Counter          Count     
      GigabitEthernet7/0/0              1        down      
      vat# quit
      

      However vppctl requires root access. It prompts me for 'sudo' passwd. I enter password for 'larry' because that user doesn't have sudo privileges and no output.

      $ vppctl show interface
      [sudo] password for larry: 
      
      $ vppctl
      vpp# show interface
      [sudo] password for larry: 
      
      vpp# 
      

            BillyM Billy McFall
            BillyM Billy McFall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: