commit - 11d6e15cefcc75b4f00c31bcbfe78c0b5eec6340
commit + f3ddbd3d7060495bb1110ccd4214189c1bd91561
blob - 195d19e4a8cfe916e13bb8a6ee923a655cad9372
blob + c6cd21097cd649ff946ac33feecf3d9c4691dfd5
--- commands.c
+++ commands.c
{ "inet", inethelp, CMPL(t) (char **)ctl_inet, ssctl, ctlhandler, 1, 1, 0, 1 },
{ "ping", pinghelp, CMPL0 0, 0, ping, 0, 0, 0, 0 },
{ "ping6", ping6help, CMPL0 0, 0, ping6, 0, 0, 0, 0 },
+ { "su", enablehelp, CMPL(ta) (char **)enabletab, sizeof(Menu), enable, 0, 0, 0, 0 },
{ "traceroute", tracerthelp, CMPL0 0, 0, traceroute, 0, 0, 0, 0 },
{ "traceroute6", tracert6help, CMPL0 0, 0, traceroute6, 0, 0, 0, 0 },
{ "ssh", sshhelp, CMPL0 0, 0, ssh, 0, 0, 0, 0 },
blob - edba70f81791519f1fd06bb438b693c6a6943639
blob + 88dd2ed47b47ccea3b21853c987e0b10296e0789
--- nsh.8
+++ nsh.8
.Ed
.El
.Pp
+.Tg su
+.Tg doas
+.Tg sudo
.Tg enable
+.Ic su
+.Pp
+An alias for the
+.Cm enable
+.Nm
+command.
+The
+.Cm su
+alias is to facilitate users used to running BSD systems elevate
+privileges with a similar user experience to running
+.Xr su 1
+commmand in other shells.
+See
+.Cm enable
+command below for more details.
+.Pp
+.Tg su
+.Tg doas
+.Tg sudo
+.Tg enable
.Ic enable
.Pp
Start a privileged shell to allow the user to run privileged commands.
.It
.Ic DEBUG
.Pp
- debugging enabed (only some network drivers use this)
+ debugging enabled (only some network drivers use this)
.Pp
.It
.Ic LOOPBACK