Samba Server

Sekcia: Konfigurácia 18.10.2010 | 18:19
Majo   Návštevník
Zdravim, problem mam u samby.
Overovanie mam cez
security = user
username map = /etc/samba/smbusers
#hosts allow = yes
hosts deny = none

Ked si dam adresar \\IP\Data -o username,password tak sa k adresaru dostanem.

Ale ked dam \\IP aby som videl vsetky zdielane priecinky dostanem failed list u windowsu.

Ak bude treba prilozim konfiguraky...
    • Re: Samba Server 18.10.2010 | 18:25
      WlaSaTy   Návštevník
      Kam keď dáš \\IP.AD.RE.SA\?

      Skús čo vypíšá príkaz: smbclient -L localhost
      • Re: Samba Server 18.10.2010 | 20:17
        Majo   Návštevník
        Takze ked dam ten vypis
        # smbclient -L localhost
        Enter root's password: 
        Anonymous login successful
        Domain=[REDWARF] OS=[Unix] Server=[Samba 3.2.5]
        tree connect failed: NT_STATUS_LOGON_FAILURE
        

        A tu IP vo fstab, pripadne cez windows-pripojit jednotku //ip/bla/
        • Re: Samba Server 18.10.2010 | 20:19
          Majo   Návštevník
          server:~# testparm
          Load smb config files from /etc/samba/smb.conf
          Processing section "[Data]"
          Processing section "[tmp]"
          Loaded services file OK.
          Server role: ROLE_STANDALONE
          Press enter to see a dump of your service definitions
          
          [global]
          	workgroup = REDWARF
          	server string = %h server
          	obey pam restrictions = Yes
          	passdb backend = tdbsam
          	pam password change = Yes
          	passwd program = /usr/bin/passwd %u
          	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
          	username map = /etc/samba/smbusers
          	unix password sync = Yes
          	syslog = 0
          	log file = /var/log/samba/log.%m
          	max log size = 1000
          	dns proxy = No
          	panic action = /usr/share/samba/panic-action %d
          	valid users = %S
          	hosts deny = none
          
          [Data]
          	comment = Zdielane data,filmy,dokumeny
          	path = /home/administrator/Data
          	valid users = admin, data
          	write list = admin
          	create mask = 0666
          	directory mask = 0777
          	guest ok = Yes
          
          [tmp]
          	comment = Upload 
          	path = /tmp
          	valid users = admin, data, nobody
          	read only = No
          	guest ok = Yes
          server:~# 
          
          • Re: Samba Server 18.10.2010 | 20:21
            Majo   Návštevník
            Jo mam to..Dik,
            zakomentoval som
            valid users = %S
            • Re: Samba Server 18.10.2010 | 20:29
              Majo   Návštevník
              Ale aj tak som nedosiahol co som chcel.

              Chcel som :zadam ip a explorer my vypluje vsetky dostupne adresare aj tie ktore su heslovane...
              Takto ich vidim ale musim mat pristup...hmhm hm
        • Re: Samba Server 18.10.2010 | 21:49
          WlaSaTy   Návštevník
          No. User root asi nie je v sambe.

          smbclient -N -U GUEST -L localhost


          Ale, nejako mi nejde do hlavy čo chceš dosiahnúť. Domáci Samba server?
          • Re: Samba Server 19.10.2010 | 10:32
            Majo   Návštevník
            Je to taky zmes sluzieb, moj server kde si trenujem vedomosti.

            Mam tam rozbehany email, web, samba, openvpn, iptables ...atd...

            V dome mam par PC. Tak ich vyuzijem.
            Dal som dokopy server..
            INTEL D510MO, Intel Atom D510, mini ITX, bulk	
            2GB Ram DDR2
            1.5GB WD Green
            
            Vsetko bezi len ma trapia take blbinky.
            V praci mam synology RS407. Tam bezi litle endian. Aj ked dam priecinok heslovat stale cih vidim aj ked nemam pristup. Ale dovnutra sa bez hesla nedostanem.
            No asi vies co myslim...

            Inak myslis ze konfigurak od openvpn je spravny? Bezpecnost a rychlost :
            port 443
            proto tcp
            dev tun
            ca /etc/openvpn/keys/ca.crt
            cert /etc/openvpn/keys/server.crt
            key /etc/openvpn/keys/server.key
            dh /etc/openvpn/keys/dh1024.pem
            server 10.1.1.0 255.255.255.0
            keepalive 10 120
            comp-lzo
            user nobody
            group nogroup
            persist-key
            persist-tun
            status openvpn-status.log
            verb 3
            log /var/log/openvpn.log
            route 192.168.1.1 255.255.255.0
            push "route 192.168.1.1 255.255.255.0"
            

            Funguje to dobre. Ale neda sa lepsie?


          • Re: Samba Server 19.10.2010 | 10:35
            Majo   Návštevník
            A troska som vylepsil smb.conf
            
            [global]
              workgroup = REDWARF
              server string = %h
              obey pam restrictions = Yes
              passdb backend = tdbsam
              pam password change = Yes
              passwd program = /usr/bin/passwd %u
              passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
              username map = /etc/samba/smbusers
              unix password sync = Yes
              syslog = 0
              log file = /var/log/samba/log.%m
              max log size = 1000
              dns proxy = No
              panic action = /usr/share/samba/panic-action %d
              hosts deny = none
              security = user
              #hosts allow = yes
              #hosts deny = none
              encrypt passwords = true
              max connections = 10
              load printers = no
              printable = no
              preferred master = yes
              socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
              printcap name = /dev/null
              disable spoolss = yes
              printing = bsd
              show add printer wizard = no
            [Data]
              comment = Zdielane data,filmy,dokumeny
              path = /home/administrator/Data
              valid users = admin, data
              write list = admin
              create mask = 0666
              directory mask = 0777
              guest ok = Yes