From edd3d53908cf662b7656c059d24cbcb733e04224 Mon Sep 17 00:00:00 2001 From: "jm9632@student.uni-lj.si" Date: Thu, 24 Sep 2015 19:14:58 +0000 Subject: NFS added commands chown, exportfs, edited /etc/exports git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@332 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/smb_nfs/howtos/si/index.html | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'kpov_judge/tasks/smb_nfs/howtos/si') diff --git a/kpov_judge/tasks/smb_nfs/howtos/si/index.html b/kpov_judge/tasks/smb_nfs/howtos/si/index.html index 2c1117d..532d603 100644 --- a/kpov_judge/tasks/smb_nfs/howtos/si/index.html +++ b/kpov_judge/tasks/smb_nfs/howtos/si/index.html @@ -155,11 +155,26 @@
  • Določi pravila v /etc/exports, npr.:

    - /srv/nfs/ERLbbBrT 192.168.1.0/24(ro,sync,no_subtree_check)
    #pravice za SimpleArbiterDhcp
    - /srv/nfs/ERLbbBrT 192.168.1.180(rw,sync,no_subtree_check)
    + /srv/nfs/ERLbbBrT 192.168.1.180(rw,sync,insecure)
    + /srv/nfs/ERLbbBrT 192.168.1.0/24(ro,sync,insecure)

  • +
  • Spremeni lastnika mape in datotek v njej: + chown student /srv/nfs/ERLbbBrT + ter podobno za datoteke v deljeni mapi. Lastnik naj ne bo root. +
  • +
  • + Poženi ukaz + exportfs -rv" + za izvoz datotečnih sistemov +

    In nato še + + service nfs-kernel-server restart + +

    +
  • +
    @@ -238,11 +253,14 @@
  • NFS: Kot root poženi ukaz - mount -t nfs ip_nfs_strežnika:deljena_mapa destinacija + mount ip_nfs_strežnika:deljena_mapa destinacija , npr.:

    - mount -t -nfs 192.168.1.10:/srv/nfs/ERLbbBrT shared + sudo mount 192.168.1.10:/srv/nfs/ERLbbBrT /home/student +

    +

    + Na SimpleArbiter bi sedaj moral imeti dostop do datotek.

  • -- cgit v1.2.1