From: Todd C. Miller Date: Wed, 2 Nov 2016 23:07:25 +0000 (-0600) Subject: Use sudoedit in examples instead of "sudo vi" X-Git-Tag: SUDO_1_8_19^2~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9715211a8fc7db64a39e2fbc1d352477dc176b0;p=sudo Use sudoedit in examples instead of "sudo vi" --- diff --git a/doc/sudo.cat b/doc/sudo.cat index 3a9d76f99..b0feef113 100644 --- a/doc/sudo.cat +++ b/doc/sudo.cat @@ -549,15 +549,15 @@ EEXXAAMMPPLLEESS To edit the _i_n_d_e_x_._h_t_m_l file as user www: - $ sudo -u www vi ~www/htdocs/index.html + $ sudoedit -u www ~www/htdocs/index.html To view system logs only accessible to root and users in the adm group: - $ sudo -g adm view /var/log/syslog + $ sudo -g adm more /var/log/syslog To run an editor as jim with a different primary group: - $ sudo -u jim -g audio vi ~jim/sound.txt + $ sudoedit -u jim -g audio ~jim/sound.txt To shut down a machine: @@ -621,4 +621,4 @@ DDIISSCCLLAAIIMMEERR file distributed with ssuuddoo or https://www.sudo.ws/license.html for complete details. -Sudo 1.8.18 January 19, 2016 Sudo 1.8.18 +Sudo 1.8.19 January 19, 2016 Sudo 1.8.19 diff --git a/doc/sudo.man.in b/doc/sudo.man.in index 0cc566a2d..927b46d9f 100644 --- a/doc/sudo.man.in +++ b/doc/sudo.man.in @@ -1096,7 +1096,7 @@ file as user www: .nf .sp .RS 6n -$ sudo -u www vi ~www/htdocs/index.html +$ sudoedit -u www ~www/htdocs/index.html .RE .fi .PP @@ -1105,7 +1105,7 @@ group: .nf .sp .RS 6n -$ sudo -g adm view /var/log/syslog +$ sudo -g adm more /var/log/syslog .RE .fi .PP @@ -1113,7 +1113,7 @@ To run an editor as jim with a different primary group: .nf .sp .RS 6n -$ sudo -u jim -g audio vi ~jim/sound.txt +$ sudoedit -u jim -g audio ~jim/sound.txt .RE .fi .PP diff --git a/doc/sudo.mdoc.in b/doc/sudo.mdoc.in index 7f4a7fa39..0c8c299cb 100644 --- a/doc/sudo.mdoc.in +++ b/doc/sudo.mdoc.in @@ -1003,18 +1003,18 @@ To edit the .Pa index.html file as user www: .Bd -literal -offset indent -$ sudo -u www vi ~www/htdocs/index.html +$ sudoedit -u www ~www/htdocs/index.html .Ed .Pp To view system logs only accessible to root and users in the adm group: .Bd -literal -offset indent -$ sudo -g adm view /var/log/syslog +$ sudo -g adm more /var/log/syslog .Ed .Pp To run an editor as jim with a different primary group: .Bd -literal -offset indent -$ sudo -u jim -g audio vi ~jim/sound.txt +$ sudoedit -u jim -g audio ~jim/sound.txt .Ed .Pp To shut down a machine: