sudo

From wiki
Revision as of 21:48, 21 December 2016 by Vincent (talk | contribs) (Created page with "== Install == <code>sudo</code> is probably pre-installed with your system. To test it, run<syntaxhighlight lang="console"> $ sudo -l Matching Defaults entries for arthur on d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Install

sudo is probably pre-installed with your system. To test it, run

$ sudo -l
Matching Defaults entries for arthur on deepthought:
    env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin, insults, env_keep+="SSH_CLIENT SSH_CONNECTION SSH_TTY", env_keep+=COLORFGBG, passwd_timeout=5

User arthur may run the following commands on deepthought:
    (ALL : ALL) ALL

In case it is not installed, you can install it using

$ su
Password:
# apt install sudo

Configure

$ sudo visudo