diff options
author | brooks <brooks@FreeBSD.org> | 2013-01-11 20:53:28 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2013-01-11 20:53:28 +0000 |
commit | 4bf0acc9bcbbd91fb107bcca34f1d2041801fa6c (patch) | |
tree | 4ae313f6369bc5e75b913bf2ee41423967ae9cc3 /usr.bin/xinstall/install.1 | |
parent | f96c80800115958325477d08a370cfbf85c9db80 (diff) | |
download | FreeBSD-src-4bf0acc9bcbbd91fb107bcca34f1d2041801fa6c.zip FreeBSD-src-4bf0acc9bcbbd91fb107bcca34f1d2041801fa6c.tar.gz |
Implement the -N <dbdir> option which allows an alternate passwd and
group file to be used. This is useful for installing on systems where
a user or group does not currently exist.
Sponsored by: DARPA, AFRL
Obtained from: NetBSD
MFC after: 5 days
Diffstat (limited to 'usr.bin/xinstall/install.1')
-rw-r--r-- | usr.bin/xinstall/install.1 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/usr.bin/xinstall/install.1 b/usr.bin/xinstall/install.1 index 1c7c415..01b58dc 100644 --- a/usr.bin/xinstall/install.1 +++ b/usr.bin/xinstall/install.1 @@ -41,6 +41,7 @@ .Op Fl f Ar flags .Op Fl g Ar group .Op Fl m Ar mode +.Op Fl N Ar dbdir .Op Fl o Ar owner .Ar file1 file2 .Nm @@ -49,6 +50,7 @@ .Op Fl f Ar flags .Op Fl g Ar group .Op Fl m Ar mode +.Op Fl N Ar dbdir .Op Fl o Ar owner .Ar file1 ... fileN directory .Nm @@ -56,6 +58,7 @@ .Op Fl v .Op Fl g Ar group .Op Fl m Ar mode +.Op Fl N Ar dbdir .Op Fl o Ar owner .Ar directory ... .Sh DESCRIPTION @@ -124,6 +127,18 @@ The default mode is set to rwxr-xr-x (0755). The specified mode may be either an octal or symbolic value; see .Xr chmod 1 for a description of possible mode values. +.It Fl N +Use the user database text file +.Pa master.passwd +and group database text file +.Pa group +from +.Ar dbdir , +rather than using the results from the system's +.Xr getpwnam 3 +and +.Xr getgrnam 3 +(and related) library calls. .It Fl o Specify an owner. A numeric UID is allowed. @@ -231,6 +246,8 @@ The default was changed to copy in .Xr mv 1 , .Xr strip 1 , .Xr mmap 2 , +.Xr getgrnam 3 , +.Xr getpwnam 3 , .Xr chown 8 .Sh HISTORY The |