This is an old revision of the document!
1 Пользователь sudo
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).
Whatch a tutorial (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
<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
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers