milis/talimatname/genel/n/nfs-utils/nfs-utils.kur-kos

26 lines
653 B
Plaintext
Raw Normal View History

2016-02-26 04:22:34 +01:00
if [ ! -f /etc/sysconfig/nfs-server ]; then
cat > /etc/sysconfig/nfs-server << "EOF"
2016-02-24 01:27:23 +01:00
PORT="2049"
PROCESSES="8"
QUOTAS="no"
KILLDELAY="10"
EOF
fi
2016-03-01 14:04:37 +01:00
if [ ! -f /etc/exports ]; then
cat > /etc/exports << "EOF"
# /etc/exports - exports(5) - directories exported to NFS clients
#
# Example for NFSv2 and NFSv3:
# /srv/home hostname1(rw,sync) hostname2(ro,sync)
# Example for NFSv4:
# /srv/nfs4 hostname1(rw,sync,fsid=0)
# /srv/nfs4/home hostname1(rw,sync,nohide)
# Using Kerberos and integrity checking:
# /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0)
# /srv/nfs4/home *(rw,sync,sec=krb5i,nohide)
#
# Use `exportfs -arv` to reload.
EOF
fi