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/en/index.html | 18 ++++++++++++++++-- kpov_judge/tasks/smb_nfs/howtos/si/index.html | 26 ++++++++++++++++++++++---- 2 files changed, 38 insertions(+), 6 deletions(-) (limited to 'kpov_judge/tasks/smb_nfs/howtos') diff --git a/kpov_judge/tasks/smb_nfs/howtos/en/index.html b/kpov_judge/tasks/smb_nfs/howtos/en/index.html index c4174f4..2a8a72e 100644 --- a/kpov_judge/tasks/smb_nfs/howtos/en/index.html +++ b/kpov_judge/tasks/smb_nfs/howtos/en/index.html @@ -158,11 +158,25 @@
  • Determine the rules in /etc/exports, e.g.:

    - /srv/nfs/ERLbbBrT 192.168.1.0/24(ro,sync,no_subtree_check)
    #privileges for 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)

  • +
  • + Change the owner of the directory and files in it: + chown student /srv/nfs/ERLbbBrT + and similary for all the files in shared directory. The owner should not be root. +
  • +
  • + Run command + exportfs -rv + to export file systems +

    After that run + services nfs-kernel-server restart +

    +
  • +
    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