From 80d4df4d1f6fa52f3c6bcc293f4c06e1831788e4 Mon Sep 17 00:00:00 2001
From: "jm9632@student.uni-lj.si"
+ VirtualBox | Strežnik | Odjemalec | NFS | Samba | DHCP
+
Postavi dva navidezna računalnika - simpleArbiterDhcp in FileServer.
SimpleArbiterDhcp naj ima prek NFS pravico pisati po imeniku.
+
auto eth1
+
INTERFACES="eth1"
+
authoritative;
+
/srv/nfs/ERLbbBrT 192.168.1.0/24(ro,sync,no_subtree_check)
+ mkdir /home/student/urania-03
+
+ [zarptica-32]
+ Preveri sintakso smb.conf datoteke z ukazom
+
+ testparam
+
+
+ Potrebno je določiti gesla Samba uporabnikom, predpogoj za to je, da uporabnik obstaja kot sistemski uporabnik.
+
+
+ Uporabi ukaz
+
+ useradd USERNAME --shell /bin/false
+
+ , s katerim ustvariš uporabnika z onemogočenim računom in brez domačega direktorija, npr.:
+
+ useradd tester --shell /bin/false
+ smb_nfs
-
- Hitra navodila
+
+ smb_nfs
+
+
+ Hitra navodila
+
Navodila
-
+
+ Navodila
+
-
+ Prenesi sledeče slike virtualk:
+
+ Nastavitve v VirtualBox:
+
-
-
-
-
-
+ Strežnik FileServer
+
-
-
-
iface eth1 inet static
address 192.168.1.10
@@ -74,16 +113,17 @@
broadcast 192.168.1.255
default-lease-time 600;
max-lease-time 7200;
@@ -94,46 +134,136 @@
option domain-name-servers 193.2.1.66, 8.8.4.4;
host SimpleArbiter {
- hardware ethernet 08:00:27:A2:FB:B4;
- fixed-address 192.168.1.180;
- }
+ hardware ethernet 08:00:27:A2:FB:B4;
+ fixed-address 192.168.1.180;
+ }
}
-
+
#pravice za SimpleArbiterDhcp
- /srv/nfs/ERLbbBrT 192.168.1.180/24(rw,sync,no_subtree_check)
+ /srv/nfs/ERLbbBrT 192.168.1.180(rw,sync,no_subtree_check)
+
+
+ path = /home/student/urania-03
+ available = yes
+ valid users = tester
+ read only = no
+ browseable = yes
+ public = yes
+ writable = yes
+
+ Za uporabnika določi Samba geslo: +
+ smbpasswd -a tester +
- - -+
mount -t -nfs 192.168.1.10:/srv/nfs/ERLbbBrT shared
+ apt-get install sambclient
+
+ smbclient //192.168.1.10/zarptica-32 - U tester +
+