To edit the _\bi_\bn_\bd_\be_\bx_\b._\bh_\bt_\bm_\bl 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:
file distributed with s\bsu\bud\bdo\bo 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
.nf
.sp
.RS 6n
-$ sudo -u www vi ~www/htdocs/index.html
+$ sudoedit -u www ~www/htdocs/index.html
.RE
.fi
.PP
.nf
.sp
.RS 6n
-$ sudo -g adm view /var/log/syslog
+$ sudo -g adm more /var/log/syslog
.RE
.fi
.PP
.nf
.sp
.RS 6n
-$ sudo -u jim -g audio vi ~jim/sound.txt
+$ sudoedit -u jim -g audio ~jim/sound.txt
.RE
.fi
.PP
.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: