milis/talimatname/temel-ek/nfs-utils/nfs-utils.kos-kur

7 lines
234 B
Plaintext
Raw Normal View History

2016-02-24 01:27:23 +01:00
newuser=nobody
newgroup=nogroup
newid=99
getent group $newgroup || /usr/bin/groupadd -g $newid $newgroup
getent passwd $newuser || /usr/bin/useradd -c "Unprivileged Nobody" \
-g $newgroup -u $newid -d /dev/null -s /bin/false $newuser