summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/smb_nfs/howtos/si
diff options
context:
space:
mode:
authorjm9632@student.uni-lj.si <jm9632@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-09-28 13:21:16 +0000
committerjm9632@student.uni-lj.si <jm9632@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-09-28 13:21:16 +0000
commita442ff334445078d29bdc27b098c51b4ef1cb87d (patch)
tree3da74539214baefee63b457a0390bcc5d60f2172 /kpov_judge/tasks/smb_nfs/howtos/si
parent2290500ca9b8346f65660026ba3bd56afc660bdd (diff)
odstranjene href za .vdi-je, dokoncana navodila
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@335 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/smb_nfs/howtos/si')
-rw-r--r--kpov_judge/tasks/smb_nfs/howtos/si/index.html138
1 files changed, 95 insertions, 43 deletions
diff --git a/kpov_judge/tasks/smb_nfs/howtos/si/index.html b/kpov_judge/tasks/smb_nfs/howtos/si/index.html
index 532d603..03ef0cb 100644
--- a/kpov_judge/tasks/smb_nfs/howtos/si/index.html
+++ b/kpov_judge/tasks/smb_nfs/howtos/si/index.html
@@ -40,10 +40,10 @@
</h3>
<ul type="disc">
<li>
- <a href="http://kpov.fri.uni-lj.si/kpov-disks/jm9632@student.uni-lj.si/07-preparation-smb_nfs/student-fileserver.vdi">student-fileserver.vdi</a>
+ student-fileserver.vdi
</li>
<li>
- <a href="http://kpov.fri.uni-lj.si/kpov-disks/jm9632@student.uni-lj.si/07-preparation-smb_nfs/simpleArbiterDhcpGW.vdi">simpleArbiterDhcpGW.vdi</a>
+ simpleArbiterDhcpGW.vdi
</li>
<br>
</ul>
@@ -161,7 +161,9 @@
</p>
</li>
<li>Spremeni lastnika mape in datotek v njej:
- <span id="code">chown student /srv/nfs/ERLbbBrT</span>
+ <span id="code">
+ chown student /srv/nfs/ERLbbBrT
+ </span>
ter podobno za datoteke v deljeni mapi. Lastnik naj ne bo root.
</li>
<li>
@@ -186,22 +188,67 @@
apt-get install samba
</span></li>
<li>
- Ustvari mapo urania-03, npr.:
+ Ustvari mapo urania-03 ter določi lastnika in pravice:
<p id="code">
- mkdir /home/student/urania-03
+ mkdir /home/urania-03<br>
+ chown -R root:users /home/urania-03/<br>
+ chmod -R ug+rwx,o+rx+w /home/urania-03<br>
</p>
</li>
<li>
- Uredi nastavitve v /etc/samba/smb.conf, dodaj na koncu dokumenta, npr.:
+ <p>Uredi nastavitve v /etc/samba/smb.conf:</p>
<p id="code">
- [zarptica-32]<br>
- path = /home/student/urania-03<br>
- available = yes<br>
- valid users = tester<br>
- read only = no<br>
- browseable = yes<br>
- public = yes<br>
- writable = yes<br>
+ [global]<br>
+ workgroup = users<br>
+ server string = zarptica-32<br>
+ dns proxy = no<br>
+ log file = /var/log/samba/log.%m<br>
+ max log size = 1000<br>
+ syslog = 0<br>
+ panic action = /usr/share/samba/panic-action %d <br>
+ security = user<br>
+ encrypt passwords = yes<br>
+ passdb backend = tdbsam<br>
+ obey pam restrictions = yes<br>
+ unix password sync = yes<br>
+ passwd program = /usr/bin/passwd %u<br>
+ passwd chat = *Enter\snew\s*\spassword:* %n\n <br>*Retype\snew\s*\spassword:* %n\n <br>*password\supdated\ssuccessfully* .<br>
+ pam password change = yes<br>
+ map to guest = bad user<br>
+ usershare allow guests = yes<br>
+ <br>
+ [homes]<br>
+ comment = Home Directories<br>
+ browseable = no<br>
+ read only = yes<br>
+ create mask = 0700<br>
+ directory mask = 0700<br>
+ valid users = %S<br>
+ <br>
+ [printers]<br>
+ comment = ALl Printers<br>
+ browseable = no<br>
+ path = /var/spool/samba<br>
+ printable = yes<br>
+ guest ok = no<br>
+ read only = yes<br>
+ create mask = 0700<br>
+ <br>
+ [print$]<br>
+ comment = Printer Drivers<br>
+ path = /var/lib/samba/printers<br>
+ browseable = yes<br>
+ read only = yes<br>
+ guest ok = no<br>
+ <br>
+ [urania-03]<br>
+ comment = All Users<br>
+ path = /home/urania-03<br>
+ users = @users<br>
+ force group = users
+ create mask = 0660<br>
+ directory mask = 0771<br>
+ writable = yes<br>
</p>
</li>
<li>
@@ -218,16 +265,17 @@
</span>
</p>
</li>
- <li>Dodaj uporabnike
- <p>
- Potrebno je določiti gesla Samba uporabnikom, predpogoj za to je, da uporabnik obstaja kot sistemski uporabnik.
+ <li>
+ Dodaj uporabnike
<p>
+ Potrebno je določiti gesla Samba uporabnikom. Uporabnik mora obstajati tudi kot lokalni uporabnik.
+ </p>
<p>
- Uporabi ukaz
+ Z ukazom
<span id="code">
useradd USERNAME --shell /bin/false
</span>
- , s katerim ustvariš uporabnika z onemogočenim računom in brez domačega direktorija, npr.:
+ ustvariš uporabnika z onemogočenim računom in brez domačega direktorija, npr.:
<p id="code">
useradd tester --shell /bin/false
</p>
@@ -238,6 +286,18 @@
smbpasswd -a tester
</p>
</p>
+ <p>
+ Dodaj uporabnika v skupino.
+ <p>
+ Odpri /etc/group
+ ter na konec dokumenta dodaj:
+ <span id="code">
+ users:x:1002:tester
+ </span>
+ </p>
+ </p>
+ </li>
+ <li> Ponovno zaženi Sambo.
</li>
</ol>
</li>
@@ -250,36 +310,28 @@
Odjemalec SimpleArbiterDhcp
</h3>
<ul type="disc">
- <li>
- NFS: Kot root poženi ukaz
- <span id="code">
- mount ip_nfs_strežnika:deljena_mapa destinacija
- </span>
- , npr.:
+ <li>Ustvari mapi za deljene datoteke, npr.:
<p id="code">
- sudo mount 192.168.1.10:/srv/nfs/ERLbbBrT /home/student
+ mkdir mnt<br>
+ mkdir mnt/smb<br>
+ mkdir mnt/nfs<br>
</p>
- <p>
- Na SimpleArbiter bi sedaj moral imeti dostop do datotek.
+ </li>
+ <li>
+ NFS: Poženi ukaz
+ <p id="code">
+ sudo mount 192.168.1.10:/srv/nfs/ERLbbBrT /mnt/nfs
</p>
</li>
<li>
- SMB:
- <ol>
- <li>
- Kot root namesti Samba odjemalca:
- <p id="code">
- apt-get install sambclient<br>
- </p>
- </li>
- <li>
- Poveži se na SMB strežnik:
- <p id="code">
- smbclient //192.168.1.10/zarptica-32 - U tester
- </p>
- </li>
- </ol>
+ SMB: Poženi ukaz
+ <p id="code">
+ sudo mount -t cifs //192.168.1.10/urania-03 /mnt/smb -o username=tester,password=test,workgroup=users<br>
+ </p>
</li>
+ <p>
+ Sedaj bi moral imeti dostop do deljenih map.
+ </p>
</ul>
</li>
</ul>