This is an old revision of the document!
2 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:
- Create the
dpisu user
adduser dpisu passwd dpisu
- Add to the
/etc/sudoers.d/dpisu
file the following stuffDefaults: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.
- Disable the requiretty requirement in the file
/etc/sudoers
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers