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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:dpi:dpi_components:dpiui:configuration:equipment:start [2023/08/29 07:31] edrudichgmailcomen:dpi:dpi_components:dpiui:configuration:equipment:start [2023/09/06 14:41] (current) – removed elena.krasnobryzh
Line 1: Line 1:
-====== Equipment connection ====== 
-{{indexmenu_n>2}} 
  
-===== 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)**. 
- 
-<note tip>Watch a tutorial on connecting to DPI (english subs): [[https://www.youtube.com/watch?v=81WMPGw6tak&feature=emb_logo|https://www.youtube.com/watch?v=81WMPGw6tak&feature=emb_logo]]</note> 
- 
-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'' <code bash>adduser dpisu 
-passwd dpisu</code> 
-  - Add to the ''/etc/sudoers.d/dpisu'' file the following stuff <code bash>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</code> //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'' <code bash> sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers</code>