diff options
Diffstat (limited to 'kpov_judge/tasks')
-rw-r--r-- | kpov_judge/tasks/smb_nfs/howtos/en/index.html | 18 | ||||
-rw-r--r-- | kpov_judge/tasks/smb_nfs/howtos/si/index.html | 26 |
2 files changed, 38 insertions, 6 deletions
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 @@ <li>
Determine the rules in /etc/exports, e.g.:
<p id="code">
- /srv/nfs/ERLbbBrT 192.168.1.0/24(ro,sync,no_subtree_check)<br>
#privileges for SimpleArbiterDhcp<br>
- /srv/nfs/ERLbbBrT 192.168.1.180(rw,sync,no_subtree_check)<br>
+ /srv/nfs/ERLbbBrT 192.168.1.180(rw,sync,insecure)<br>
+ /srv/nfs/ERLbbBrT 192.168.1.0/24(ro,sync,insecure)<br>
</p>
</li>
+ <li>
+ Change the owner of the directory and files in it:
+ <span id="code">chown student /srv/nfs/ERLbbBrT</span>
+ and similary for all the files in shared directory. The owner should not be root.
+ </li>
+ <li>
+ Run command
+ <span id="code">exportfs -rv</span>
+ to export file systems
+ <p>After that run
+ <span id="code">services nfs-kernel-server restart</span>
+ </p>
+ </li>
+ <br>
</ol>
</li>
<a name="smb"></a>
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 @@ <li>
Določi pravila v /etc/exports, npr.:
<p id="code">
- /srv/nfs/ERLbbBrT 192.168.1.0/24(ro,sync,no_subtree_check)<br>
#pravice za SimpleArbiterDhcp<br>
- /srv/nfs/ERLbbBrT 192.168.1.180(rw,sync,no_subtree_check)<br>
+ /srv/nfs/ERLbbBrT 192.168.1.180(rw,sync,insecure)<br>
+ /srv/nfs/ERLbbBrT 192.168.1.0/24(ro,sync,insecure)<br>
</p>
</li>
+ <li>Spremeni lastnika mape in datotek v njej:
+ <span id="code">chown student /srv/nfs/ERLbbBrT</span>
+ ter podobno za datoteke v deljeni mapi. Lastnik naj ne bo root.
+ </li>
+ <li>
+ Poženi ukaz
+ <span id="code">exportfs -rv</span>"
+ za izvoz datotečnih sistemov
+ <p>In nato še
+ <span id="code">
+ service nfs-kernel-server restart
+ </span>
+ </p>
+ </li>
+ <br>
</ol>
</li>
<a name="smb"></a>
@@ -238,11 +253,14 @@ <li>
NFS: Kot root poženi ukaz
<span id="code">
- mount -t nfs ip_nfs_strežnika:deljena_mapa destinacija
+ mount ip_nfs_strežnika:deljena_mapa destinacija
</span>
, npr.:
<p id="code">
- mount -t -nfs 192.168.1.10:/srv/nfs/ERLbbBrT shared
+ sudo mount 192.168.1.10:/srv/nfs/ERLbbBrT /home/student
+ </p>
+ <p>
+ Na SimpleArbiter bi sedaj moral imeti dostop do datotek.
</p>
</li>
<li>
|