summaryrefslogtreecommitdiffstats
path: root/adduser
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>1996-11-04 17:21:11 +0000
committerWolfram Schneider <wosch@FreeBSD.org>1996-11-04 17:21:11 +0000
commitbcbfd5e99ee20c241ad6ac11d9e75826900944ac (patch)
tree8d76e75dc3da82f8778fb3c0fa9eb65ee091f537 /adduser
parent0f6e67efb246488d84e1e88e7f674d78a9f1fd2d (diff)
downloadpw-darwin-bcbfd5e99ee20c241ad6ac11d9e75826900944ac.tar.gz
pw-darwin-bcbfd5e99ee20c241ad6ac11d9e75826900944ac.tar.zst
pw-darwin-bcbfd5e99ee20c241ad6ac11d9e75826900944ac.zip
manpages for rmgroup(8) and addgroup(8)
Diffstat (limited to 'adduser')
-rw-r--r--adduser/Makefile9
-rw-r--r--adduser/addgroup.883
-rw-r--r--adduser/rmgroup.852
3 files changed, 142 insertions, 2 deletions
diff --git a/adduser/Makefile b/adduser/Makefile
index e35992c..7c11524 100644
--- a/adduser/Makefile
+++ b/adduser/Makefile
@@ -1,7 +1,12 @@
-MAN8= adduser.8
+# $Id$
+
+SCRIPTS= adduser.perl #rmuser.perl addgroup.tcl rmgroup.sh
+MAN8= adduser.8 #rmuser.8 addgroup.8 rmgroup.8
beforeinstall:
+.for script in ${SCRIPTS}
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
- ${.CURDIR}/adduser.perl ${DESTDIR}${BINDIR}/adduser
+ ${.CURDIR}/${script} ${DESTDIR}${BINDIR}/${script:R}
+.endfor
.include <bsd.prog.mk>
diff --git a/adduser/addgroup.8 b/adduser/addgroup.8
new file mode 100644
index 0000000..2ce5e65
--- /dev/null
+++ b/adduser/addgroup.8
@@ -0,0 +1,83 @@
+.\" Copyright (c) 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $Id: adduser.8,v 1.12 1996/08/28 17:54:13 adam Exp $
+
+.Dd Oct, 30, 1996
+.Dt ADDGROUP 8
+.Os FreeBSD 2.2
+.Sh NAME
+.Nm addgroup
+.Nd add a group or add users to a group
+.Sh SYNOPSIS
+.Nm
+.Op Fl g Ar gid
+.Ar group
+.Op Ar user Op , Ar user,...
+.Sh DESCRIPTION
+.Nm
+add a group to
+.Xr group 5
+database.
+Optional
+.Ar user
+initialized the group with group members.
+.Ar user
+may be a comma separated list of user names.
+If
+.Ar group
+already exists
+.Nm
+add
+.Ar user
+to the
+.Ar group.
+.Sh OPTIONS
+.Bl -tag -width Ds
+.It Sy -g gid
+Create new group with group id
+.Ar gid
+if possible or higher. Default gid is 1000.
+This option has only affects for new groups.
+.El
+.Sh EXAMPLES
+.Pp
+$ addgroup -g 5000 cracau
+.Pp
+Add group `cracau' with group identification 5000 or higher.
+.Pp
+$ addgroup foo blech,bar
+.Pp
+Add user `blech' and user `bar' to group `foo'. Create group
+`foo' if not exists.
+.Sh SEE ALSO
+.Xr group 5 ,
+.Xr adduser 8 ,
+.Xr rmuser 8 ,
+.Xr rmgroup 8
+.Sh HISTORY
+The
+.Nm
+command appeared in
+.Fx 2.2 .
diff --git a/adduser/rmgroup.8 b/adduser/rmgroup.8
new file mode 100644
index 0000000..3a867c5
--- /dev/null
+++ b/adduser/rmgroup.8
@@ -0,0 +1,52 @@
+.\" Copyright (c) 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $Id: adduser.8,v 1.12 1996/08/28 17:54:13 adam Exp $
+
+.Dd Oct, 30, 1996
+.Dt RMGROUP 8
+.Os FreeBSD 2.2
+.Sh NAME
+.Nm rmgroup
+.Nd delete a Unix group
+.Sh SYNOPSIS
+.Nm
+.Ar group
+.Sh DESCRIPTION
+.Nm
+delete a Unix group from group database.
+.Nm
+do not delete the system groups wheel, daemon, kmem, sys, tty,
+operator, bin, nogroup, nobody,
+and not groups with gid 0.
+.Sh SEE ALSO
+.Xr group 5 ,
+.Xr adduser 8 ,
+.Xr addgroup 8 ,
+.Xr rmuser 8
+.Sh HISTORY
+The
+.Nm
+command appeared in
+.Fx 2.2 .