nfs: install passwd entries for nobody and nfsnobody

master
Harald Hoyer 2009-11-26 10:38:06 +01:00
parent bad6113059
commit 48df9fcc11
1 changed files with 2 additions and 0 deletions

View File

@ -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