From 80d4df4d1f6fa52f3c6bcc293f4c06e1831788e4 Mon Sep 17 00:00:00 2001
From: "jm9632@student.uni-lj.si"
+ VirtualBox | Server | Client | NFS | Samba | DHCP
+
- Set-up two virtual computers - SimpleArbiterDhcp and FileServer.
+ Set up two virtual computers - SimpleArbiterDhcp and FileServer.
Make sure that the directory /srv/nfs/ERLbbBrT on FileServer is accessible
@@ -21,10 +31,14 @@
SimpleArbiterDhcp should have write access to /srv/nfs/ERLbbBrT over NFS.
+
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]
+ Test the syntax of smb.conf file with command
+
+ testparam
+
+
+ In order to define passwords for Samba users they have to exist as system users.
+
+ Use command
+
+ useradd USERNAME --shell /bin/false
+
+ to create user with a disabled account and without home directory, e.g:
+
+ useradd tester --shell /bin/false
+ smb_nfs
-
- Quick guide
+
+ smb_nfs
+
+
+ Quick guide
+
Instructions
-
+
+ Instructions
+
-
+ Download these VM images:
+
+ VirtualBox Settings:
+
-
-
-
-
-
+ Server FileServer
+
-
-
-
iface eth1 inet static
address 192.168.1.10
@@ -74,16 +118,16 @@
broadcast 192.168.1.255
default-lease-time 600;
max-lease-time 7200;
@@ -94,46 +138,134 @@
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;
+ }
}
-
#privileges for 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
+
+ Define Samba password for your user: +
+ 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 +
+