summaryrefslogtreecommitdiff
path: root/static/unix-v10/man1/newgrp.1
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man1/newgrp.1
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man1/newgrp.1')
-rw-r--r--static/unix-v10/man1/newgrp.142
1 files changed, 42 insertions, 0 deletions
diff --git a/static/unix-v10/man1/newgrp.1 b/static/unix-v10/man1/newgrp.1
new file mode 100644
index 00000000..e77a2030
--- /dev/null
+++ b/static/unix-v10/man1/newgrp.1
@@ -0,0 +1,42 @@
+.TH NEWGRP 1
+.CT 1 proc_man secur
+.SH NAME
+newgrp \(mi change to a new group
+.SH SYNOPSIS
+.B newgrp
+.I group
+[
+.I command
+[
+.I arg ...
+] ]
+.SH DESCRIPTION
+.I Newgrp
+runs a
+.I command
+with the (real and effective) groupid temporarily set to
+.I group.
+If no command is given, the user's shell (see
+.IR passwd (5))
+is executed.
+.PP
+A password is demanded if the group has
+a password and the user does not.
+.SH EXAMPLES
+.TP
+.L
+exec newgrp bin
+Restart the shell with a different groupid.
+.SH FILES
+.F /etc/group
+.br
+.F /etc/passwd
+.SH "SEE ALSO"
+.IR login (8),
+.IR getuid (2)
+.SH BUGS
+On other systems,
+.I newgrp
+is built into the shell.
+Here it will spawn a new shell unless invoked with
+.BR exec .