nfs: install passwd entries for nobody and nfsnobody
authorHarald Hoyer <harald@redhat.com>
Thu, 26 Nov 2009 09:38:06 +0000 (10:38 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Nov 2009 09:38:06 +0000 (10:38 +0100)
modules.d/95nfs/install

index 7cbb513..2b2d7cf 100755 (executable)
@@ -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