NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/50787: Describe the format of usermgmt.conf

>Number:         50787
>Category:       misc
>Synopsis:       Describe the format of usermgmt.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 09 04:50:00 +0000 2016
>Originator:     Travis Paul
>Release:        current
NetBSD 7.99.26 NetBSD 7.99.26 (kagato) #0: Sun Feb  7 11:33:50 EST 2016 amd64

While trying to figure out the format for usermgmt.conf I came across a 2012 Google Code-In task which had added a syntax example to the usermgmt.conf manpage:

Patch below is taken from the diff submitted by Matthew Bauer, tested with man from current.
The manpage for usermgmt.conf doesn't describe the configuration file format.
Index: usermgmt.conf.5
RCS file: /cvsroot/src/usr.sbin/user/usermgmt.conf.5,v
retrieving revision 1.7
diff -u -r1.7 usermgmt.conf.5
--- usermgmt.conf.5     31 Dec 2009 20:14:19 -0000      1.7
+++ usermgmt.conf.5     9 Feb 2016 04:36:04 -0000
@@ -135,6 +135,22 @@
 sets the default skeleton directory in which to find files
 with which to populate the new user's home directory.
+.Nm usermgmt.conf
+file uses a simple syntax format.
+Each line must contain one option.
+That option must be in the front of the line (no spaces).
+Any number of white spaces such as ' ' and '\\t' may follow.
+The line ends with a list of options from each.
+.Bd -unfilled -offset indent -compact
+group     wheel
+base_dir  /home/
+skel_dir  /etc/skel
+shell     /bin/sh
+inactive  0
 .Bl -tag -width /etc/usermgmt.conf -compact
 .It Pa /etc/usermgmt.conf

Home | Main Index | Thread Index | Old Index