1 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

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

Let's consider dpisu user creating as an example:

Create the dpisu user

adduser dpisu
passwd dpisu

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

Disable the requiretty requirement in the file /etc/sudoers

sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers