summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-11-26 10:38:06 +0100
committerHarald Hoyer <harald@redhat.com>2009-11-26 10:38:06 +0100
commit48df9fcc117ee21e9327a1d11f610022973c7e8a (patch)
treeac88690755adedf23940c0d2448e53dd2f235f65
parentbad6113059a6726b76b717c8df18c5a4ae8f7110 (diff)
nfs: install passwd entries for nobody and nfsnobody
-rwxr-xr-xmodules.d/95nfs/install2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/95nfs/install b/modules.d/95nfs/install
index 7cbb513..2b2d7cf 100755
--- a/modules.d/95nfs/install
+++ b/modules.d/95nfs/install
@@ -36,6 +36,8 @@ mkdir -p "$initdir/var/lib/nfs/statd/sm"
# Rather than copy the passwd file in, just set a user for rpcbind
# We'll save the state and restart the daemon from the root anyway
+egrep '^nobody:' /etc/passwd >> "$initdir/etc/passwd"
+egrep '^nfsnobody:' /etc/passwd >> "$initdir/etc/passwd"
egrep '^rpc:' /etc/passwd >> "$initdir/etc/passwd"
egrep '^rpcuser:' /etc/passwd >> "$initdir/etc/passwd"
#which nologin >/dev/null 2>&1 && dracut_install nologin