diff options
author | davidn <davidn@FreeBSD.org> | 1999-02-23 07:15:11 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1999-02-23 07:15:11 +0000 |
commit | aea1f6bc3cb4963dbd48dcd9f051919520f70f2b (patch) | |
tree | b3bd7501edb165799eda61bf2ac5d8202c789a5d /usr.sbin/pw/pw.8 | |
parent | f6416f79a6b9a2eb5c485e8af421d3d570a95d25 (diff) | |
download | FreeBSD-src-aea1f6bc3cb4963dbd48dcd9f051919520f70f2b.zip FreeBSD-src-aea1f6bc3cb4963dbd48dcd9f051919520f70f2b.tar.gz |
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 'usr.sbin/pw/pw.8')
-rw-r--r-- | usr.sbin/pw/pw.8 | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw.8 b/usr.sbin/pw/pw.8 index 3a1a7a8..5de8237 100644 --- a/usr.sbin/pw/pw.8 +++ b/usr.sbin/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 |