diff --git a/usr.bin/newgrp/newgrp.1 b/usr.bin/newgrp/newgrp.1 index 463558410a9..250184839d7 100644 --- a/usr.bin/newgrp/newgrp.1 +++ b/usr.bin/newgrp/newgrp.1 @@ -69,6 +69,17 @@ exits >0. Otherwise, the exit status of .Nm is the exit status of the shell. +.Sh EXAMPLES +.Bd -literal -offset indent +Create a group with pw(8) +% pw group add foo + +Set the group password +% pw group mod foo -h 0 + +As a non-root user, switch to the group +% newgrp foo +.Ed .Sh SEE ALSO .Xr csh 1 , .Xr groups 1 , @@ -78,7 +89,8 @@ is the exit status of the shell. .Xr umask 1 , .Xr group 5 , .Xr passwd 5 , -.Xr environ 7 +.Xr environ 7 , +.Xr pw 8 .Sh STANDARDS The .Nm