bin/117751: Make pw(8) support "-d" argument

Giorgos Keramidas keramida at freebsd.org
Tue Jun 3 13:20:07 UTC 2008


The following reply was made to PR bin/117751; it has been noted by GNATS.

From: Giorgos Keramidas <keramida at freebsd.org>
To: Ivan Voras <ivoras at freebsd.org>
Cc: remko at freebsd.org, bug-followup at freebsd.org
Subject: Re: bin/117751: Make pw(8) support "-d" argument
Date: Tue, 03 Jun 2008 15:56:38 +0300

 > Among its possible arguments is a "-d" argument which sets the base
 > directory for the password database (e.g. makes pw operate on a jailed
 > directory tree).
 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: remko
 > State-Changed-When: Fri Nov 16 11:03:52 UTC 2007
 > State-Changed-Why:
 > As discussed in private, -d is currently being used in pw useradd for
 > example to specify what the homedirectory of the user will be, the
 > option you are talking about could not be found by my (quick) check of
 > the manual, could you please specify this?
 >
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=117751
 
 Hi Ivan,
 
 This has been sitting in the Gnats queue for a few months.  I can't find
 the -d option for setting the base directory.  I can see that -V etcdir
 is supported for locating an alternative etc/pwd.db but not -d :/
 
 Jail password database can be tweaked from the `host' with the existing
 options I guess, i.e.:
 
     JROOT='/home/jail/ftp'
     pw -V "${JROOT}/etc" useradd -d "${JROOT}/home/ftp" [...]
 
 Did you have something else in mind?
 


More information about the freebsd-bugs mailing list