From a442ff334445078d29bdc27b098c51b4ef1cb87d Mon Sep 17 00:00:00 2001 From: "jm9632@student.uni-lj.si" Date: Mon, 28 Sep 2015 13:21:16 +0000 Subject: 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 --- kpov_judge/tasks/smb_nfs/howtos/en/index.html | 128 +++++++++++++++++------- kpov_judge/tasks/smb_nfs/howtos/si/index.html | 138 ++++++++++++++++++-------- 2 files changed, 187 insertions(+), 79 deletions(-) (limited to 'kpov_judge') diff --git a/kpov_judge/tasks/smb_nfs/howtos/en/index.html b/kpov_judge/tasks/smb_nfs/howtos/en/index.html index 2a8a72e..fe056b4 100644 --- a/kpov_judge/tasks/smb_nfs/howtos/en/index.html +++ b/kpov_judge/tasks/smb_nfs/howtos/en/index.html @@ -41,10 +41,10 @@ @@ -165,15 +165,19 @@
  • 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. + + chown student /srv/nfs/ERLbbBrT + + and similarly 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 + + services nfs-kernel-server restart +


  • @@ -189,22 +193,67 @@
  • - Create directory urania-03, npr.: + Create directory urania-03 and set owner and privileges:

    - mkdir /home/student/urania-03 + mkdir /home/student/urania-03
    + chown -R root:users /home/urania-03/
    + chmod -R ug+rwx,o+rx+w /home/urania-03

  • Edit configurations in /etc/samba/smb.conf, add at the bottom of document, e.g.:

    - [zarptica-32]
    - path = /home/student/urania-03
    - available = yes
    - valid users = tester
    - read only = no
    - browseable = yes
    - public = yes
    - writable = yes
    + [global]
    + workgroup = users
    + server string = zarptica-32
    + dns proxy = no
    + log file = /var/log/samba/log.%m
    + max log size = 1000
    + syslog = 0
    + panic action = /usr/share/samba/panic-action %d
    + security = user
    + encrypt passwords = yes
    + passdb backend = tdbsam
    + obey pam restrictions = yes
    + unix password sync = yes
    + passwd program = /usr/bin/passwd %u
    + passwd chat = *Enter\snew\s*\spassword:* %n\n
    *Retype\snew\s*\spassword:* %n\n
    *password\supdated\ssuccessfully* .
    + pam password change = yes
    + map to guest = bad user
    + usershare allow guests = yes
    +
    + [homes]
    + comment = Home Directories
    + browseable = no
    + read only = yes
    + create mask = 0700
    + directory mask = 0700
    + valid users = %S
    +
    + [printers]
    + comment = ALl Printers
    + browseable = no
    + path = /var/spool/samba
    + printable = yes
    + guest ok = no
    + read only = yes
    + create mask = 0700
    +
    + [print$]
    + comment = Printer Drivers
    + path = /var/lib/samba/printers
    + browseable = yes
    + read only = yes
    + guest ok = no
    +
    + [urania-03]
    + comment = All Users
    + path = /home/urania-03
    + users = @users
    + force group = users + create mask = 0660
    + directory mask = 0771
    + writable = yes

  • @@ -224,7 +273,7 @@
  • Add users:

    - In order to define passwords for Samba users they have to exist as system users. + In order to define passwords for Samba users they have to exist on a local system, too.

    Use command @@ -240,6 +289,17 @@

    smbpasswd -a tester

    +

    + Add the user to your group. +

    + Open /etc/group file and add group and users: + + users:x:1002:tester + +

    +

    +
  • Restart Samba. +
  • @@ -252,32 +312,28 @@ Client SimpleArbiterDhcp 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 @@ @@ -161,7 +161,9 @@

  • Spremeni lastnika mape in datotek v njej: - chown student /srv/nfs/ERLbbBrT + + chown student /srv/nfs/ERLbbBrT + ter podobno za datoteke v deljeni mapi. Lastnik naj ne bo root.
  • @@ -186,22 +188,67 @@ apt-get install samba
  • - Ustvari mapo urania-03, npr.: + Ustvari mapo urania-03 ter določi lastnika in pravice:

    - mkdir /home/student/urania-03 + mkdir /home/urania-03
    + chown -R root:users /home/urania-03/
    + chmod -R ug+rwx,o+rx+w /home/urania-03

  • - Uredi nastavitve v /etc/samba/smb.conf, dodaj na koncu dokumenta, npr.: +

    Uredi nastavitve v /etc/samba/smb.conf:

    - [zarptica-32]
    - path = /home/student/urania-03
    - available = yes
    - valid users = tester
    - read only = no
    - browseable = yes
    - public = yes
    - writable = yes
    + [global]
    + workgroup = users
    + server string = zarptica-32
    + dns proxy = no
    + log file = /var/log/samba/log.%m
    + max log size = 1000
    + syslog = 0
    + panic action = /usr/share/samba/panic-action %d
    + security = user
    + encrypt passwords = yes
    + passdb backend = tdbsam
    + obey pam restrictions = yes
    + unix password sync = yes
    + passwd program = /usr/bin/passwd %u
    + passwd chat = *Enter\snew\s*\spassword:* %n\n
    *Retype\snew\s*\spassword:* %n\n
    *password\supdated\ssuccessfully* .
    + pam password change = yes
    + map to guest = bad user
    + usershare allow guests = yes
    +
    + [homes]
    + comment = Home Directories
    + browseable = no
    + read only = yes
    + create mask = 0700
    + directory mask = 0700
    + valid users = %S
    +
    + [printers]
    + comment = ALl Printers
    + browseable = no
    + path = /var/spool/samba
    + printable = yes
    + guest ok = no
    + read only = yes
    + create mask = 0700
    +
    + [print$]
    + comment = Printer Drivers
    + path = /var/lib/samba/printers
    + browseable = yes
    + read only = yes
    + guest ok = no
    +
    + [urania-03]
    + comment = All Users
    + path = /home/urania-03
    + users = @users
    + force group = users + create mask = 0660
    + directory mask = 0771
    + writable = yes

  • @@ -218,16 +265,17 @@

  • -
  • Dodaj uporabnike -

    - Potrebno je določiti gesla Samba uporabnikom, predpogoj za to je, da uporabnik obstaja kot sistemski uporabnik. +

  • + Dodaj uporabnike

    + Potrebno je določiti gesla Samba uporabnikom. Uporabnik mora obstajati tudi kot lokalni uporabnik. +

    - Uporabi ukaz + Z ukazom useradd USERNAME --shell /bin/false - , 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.:

    useradd tester --shell /bin/false

    @@ -238,6 +286,18 @@ smbpasswd -a tester

    +

    + Dodaj uporabnika v skupino. +

    + Odpri /etc/group + ter na konec dokumenta dodaj: + + users:x:1002:tester + +

    +

    +
  • +
  • Ponovno zaženi Sambo.
  • @@ -250,36 +310,28 @@ Odjemalec SimpleArbiterDhcp -- cgit v1.2.1