summaryrefslogtreecommitdiffstats
path: root/pw/pw.8
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1999-02-23 07:15:11 +0000
committerDavid Nugent <davidn@FreeBSD.org>1999-02-23 07:15:11 +0000
commit9b902300660a81e65108ffaa5289722e09526d43 (patch)
tree4debe9fd3ea8e8f60b866076ba6adeeccdcf21f8 /pw/pw.8
parentb4807366e2f2f1d630c4f6afaf65ce9941db6c84 (diff)
downloadpw-darwin-9b902300660a81e65108ffaa5289722e09526d43.tar.gz
pw-darwin-9b902300660a81e65108ffaa5289722e09526d43.tar.zst
pw-darwin-9b902300660a81e65108ffaa5289722e09526d43.zip
1) Do not blindly ignore file update errors which may occur due to concurrent
updating 2) Add -V <etcdir>, which allows maintaining user/group database in alternate locations other than /etc.
Diffstat (limited to 'pw/pw.8')
-rw-r--r--pw/pw.829
1 files changed, 27 insertions, 2 deletions
diff --git a/pw/pw.8 b/pw/pw.8
index 3a1a7a8..5de8237 100644
--- a/pw/pw.8
+++ b/pw/pw.8
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: pw.8,v 1.14 1998/08/31 04:49:04 jkoshy Exp $
+.\" $Id: pw.8,v 1.15 1998/09/18 04:45:43 jkoshy Exp $
.\"
.Dd December 9, 1996
.Dt PW 8
@@ -32,6 +32,7 @@
.Nd create, remove, modify & display system users and groups
.Sh SYNOPSIS
.Nm pw
+.Op Fl V Ar etcdir
.Ar useradd
.Op name|uid
.Op Fl C Ar config
@@ -54,6 +55,7 @@
.Op Fl P
.Op Fl Y
.Nm pw
+.Op Fl V Ar etcdir
.Ar useradd
.Op name|uid
.Fl D
@@ -71,6 +73,7 @@
.Op Fl s Ar shell
.Op Fl y Ar path
.Nm pw
+.Op Fl V Ar etcdir
.Ar userdel
.Op name|uid
.Op Fl n Ar name
@@ -78,6 +81,7 @@
.Op Fl r
.Op Fl Y
.Nm pw
+.Op Fl V Ar etcdir
.Ar usermod
.Op name|uid
.Op Fl C Ar config
@@ -101,6 +105,7 @@
.Op Fl P
.Op Fl Y
.Nm pw
+.Op Fl V Ar etcdir
.Ar usershow
.Op name|uid
.Op Fl n Ar name
@@ -109,10 +114,12 @@
.Op Fl P
.Op Fl a
.Nm pw
+.Op Fl V Ar etcdir
.Ar usernext
.Op Fl C Ar config
.Op Fl q
.Nm pw
+.Op Fl V Ar etcdir
.Ar groupadd
.Op group|gid
.Op Fl C Ar config
@@ -126,12 +133,14 @@
.Op Fl P
.Op Fl Y
.Nm pw
+.Op Fl V Ar etcdir
.Ar groupdel
.Op group|gid
.Op Fl n Ar name
.Op Fl g Ar gid
.Op Fl Y
.Nm pw
+.Op Fl V Ar etcdir
.Ar groupmod
.Op group|gid
.Op Fl C Ar config
@@ -147,6 +156,7 @@
.Op Fl P
.Op Fl Y
.Nm pw
+.Op Fl V Ar etcdir
.Ar groupshow
.Op group|gid
.Op Fl n Ar name
@@ -155,6 +165,7 @@
.Op Fl P
.Op Fl a
.Nm pw
+.Op Fl V Ar etcdir
.Ar groupnext
.Op Fl C Ar config
.Op Fl q
@@ -208,9 +219,23 @@ id as an alternative to using the
.Fl g Ar gid
options.
.Pp
-The following flags are common to most modes of operation;
+The following flags are common to most or all modes of operation;
.Pp
.Bl -tag -width "-G grouplist"
+.It Fl V Ar etcdir
+This flag sets an alternate location for the password, group and configuration files,
+and may be used to maintain a user/group database in an alternate location.
+If this switch is specified, the system
+.Pa /etc/pw.conf
+will not be sourced for default configuration data, but the file pw.conf in the
+specified directory will be used instead (or none, if it does not exist).
+The
+.Fl C
+flag may be used to override this behaviour.
+As an exception to the general rule where options must follow the operation
+type, the
+.Fl V
+flag may be used on the command line before the operation keyword.
.It Fl C Ar config
By default,
.Nm