Page MenuHomeFreeBSD

D48877.id150657.diff
No OneTemporary

D48877.id150657.diff

diff --git a/usr.bin/newgrp/newgrp.1 b/usr.bin/newgrp/newgrp.1
--- a/usr.bin/newgrp/newgrp.1
+++ b/usr.bin/newgrp/newgrp.1
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd February 8, 2013
+.Dd February 6, 2025
.Dt NEWGRP 1
.Os
.Sh NAME
@@ -67,6 +67,17 @@
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 ,

File Metadata

Mime Type
text/plain
Expires
Tue, Jun 23, 5:04 PM (19 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34254183
Default Alt Text
D48877.id150657.diff (649 B)

Event Timeline