Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178116593
D48877.1796013819.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
667 B
Referenced Files
None
Subscribers
None
D48877.1796013819.diff
View Options
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,21 @@
Otherwise, the exit status of
.Nm
is the exit status of the shell.
+.Sh EXAMPLES
+Create a new group,
+.Ar foo ,
+with
+.Xr pw 8 :
+.Pp
+.Dl pw group add foo
+.Pp
+Set the group password:
+.Pp
+.Dl pw group mod foo -h 0
+.Pp
+As a non-root user, switch to the group:
+.Pp
+.Dl newgrp foo
.Sh SEE ALSO
.Xr csh 1 ,
.Xr groups 1 ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 30, 4:43 AM (23 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42100696
Default Alt Text
D48877.1796013819.diff (667 B)
Attached To
Mode
D48877: Update newgrp(1) to include examples.
Attached
Detach File
Event Timeline