en:dpi:dpi_components:dpiui:configuration:equipment:start [Документация VAS Experts]

This is an old revision of the document!


Equipment connection

Sudo user

The equipment is connected and controlled using the SSH protocol. Connection must be done under a user with sudo privileges, or under the root user (not recommended).

Watch a tutorial on connecting to DPI (english subs): https://www.youtube.com/watch?v=81WMPGw6tak&feature=emb_logo

A new user should be created with sudo access granted on the connected equipment.

Let's consider dpisu user creating as an example:

  1. Create the dpisu user
    adduser dpisu
    passwd dpisu
  2. Add to the /etc/sudoers.d/dpisu file the following stuff
    Defaults:dpisu !requiretty
    Defaults secure_path = /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
    dpisu    ALL=(ALL)       NOPASSWD: ALL

    By doing this, you disable the dpisu user requirement for a password and the requiretty requirement when switching to sudo mode.

  3. Disable the requiretty requirement in the file /etc/sudoers
     sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers