en:dpi:dpi_components:dpiui:configuration:equipment:sudo_user [Документация 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:sudo_user [2022/01/30 00:22] kuliginaen:dpi:dpi_components:dpiui:configuration:equipment:sudo_user [2023/08/24 07:03] (current) – removed elena.krasnobryzh
Line 1: Line 1:
-====== 1 Sudo user ====== 
-{{indexmenu_n>2}} 
  
-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> 
- 
-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>adduser dpisu 
-passwd dpisu</code> 
-  - Add to the /etc/sudoers.d/dpisu file the following stuff <code>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><html><span style="font-size:0.7em;">By doing this, you disable the dpisu user requirement for a password and the requiretty requirement when switching to sudo mode.</span></html> 
-  - Disable the requiretty requirement in the file /etc/sudoers <code> sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers</code>