From 48df9fcc117ee21e9327a1d11f610022973c7e8a Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 26 Nov 2009 10:38:06 +0100 Subject: [PATCH] nfs: install passwd entries for nobody and nfsnobody --- modules.d/95nfs/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules.d/95nfs/install b/modules.d/95nfs/install index 7cbb513f7..2b2d7cf3f 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 -- 2.47.3