Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2015-12-17 08:47:31

  mihoo_koz - Użytkownik

mihoo_koz
Użytkownik
Zarejestrowany: 2006-09-27

Samba problem z dostępem

Witam,

zainstalowałem na jessie sambę. Konfiguracja poniżej. Ma udostępniać jeden katalog z prawami 777. Jak na stacji wpisuje \\192.168.1.1\ to pokazuje się błąd windows 0x80070043 ale jak wpisuje \\192.168.1.1\all to się podłącza. Co ciekawe na nie których stacjach wpisanie \\192.168.1.1\ działa poprawnie. Jakiś pomysł? Stacje to WindowsXP, Windows 7

Kod:

[global]
   workgroup = FIRMA
   server string = Samba
   security = user
   dns proxy = no
   netbios name = debian
   hosts allow = 192.168.1.0/24

#### Networking ####

#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller". 
#
# Most people will want "standalone sever" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
   server role = standalone server

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
   passdb backend = tdbsam
   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

########## Domains ###########


############ Misc ############


# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

[homes]
   comment = Home Directories
   browseable = no
   read only = yes
   create mask = 0700
   directory mask = 0700
   valid users = %S

[all]
    path = /home/samba/all
    writable = yes
    force directory mode = 777
    force create mode = 777
    guest ok = yes
    browseable = yes
    read only = no
    create mask = 0777

pozdrawiam

Offline

 

#2  2015-12-17 21:40:17

  qlemik - Użytkownik

qlemik
Użytkownik
Zarejestrowany: 2007-11-27

Re: Samba problem z dostępem

W homes nie masz :

Kod:

path = /home/samba/folder_nazwa

Na wszeli wypadek:
Masz tu gotowego konfiga z mojego domowego kompa. Musi na nim działać. Pozakładaj tylko w HOMES -> patch -> nazwy folderów jak logiy.


Kod:

[global]
netbios name = EVbox
server string = EVbox
workgroup = SKYNET6000
browsable=yes
available=yes
unix charset = UTF8
display charset = UTF8
dos charset = CP852
wins support = yes
name resolve order = wins bcast hosts lmhosts
unix password sync = no
update encrypted = no
public=yes
security=user
#interfaces = eth0
local master = yes
os level = 99
domain master = yes
preferred master = yes                                                                                                                           
encrypt passwords = true                                                                                                                                  
debug level = 2                                                                                                                                           
debug timestamp = no                                                                                                                                      
timestamp logs = True                                                                                                                                     
nt acl support = yes                                                                                                                                      
lanman auth = yes                                                                                                                                         
passdb backend = smbpasswd


[homes]
        comment = %U Directories
        path = /home/samba/users/%U
        browseable = No
        public = no
        write list = %U
        create mask = 0600
        directory mask = 0700


[tajne]                                                                                                                                                  
    comment = Tajne przez Poufne                                                                                                                          
    path = /home/Tajne/                                                                                                                                   
    force user = tajne                                                                                                                                    
    browseable = yes                                                                                                                                      
    valid users = tajne
    writable = yes
    write ok = yes

Offline

 

#3  2015-12-18 09:03:50

  mihoo_koz - Użytkownik

mihoo_koz
Użytkownik
Zarejestrowany: 2006-09-27

Re: Samba problem z dostępem

przy Twoim configu i takim udostępnieniem

Kod:

[all]
path = /home/samba/all     
writable = yes     
force directory mode = 777     
force create mode = 777     
guest ok = yes     
browseable = yes     
read only = no     
create mask = 0777

wpisując \\ipserwer\all pyta o user i hasło. tak samo jest jak daje \\ipserwer też pyta o usera i hasło

Offline

 

#4  2015-12-18 10:47:38

  Hepita - Użytkownik

Hepita
Użytkownik
Skąd: 127.0.0.1
Zarejestrowany: 2014-10-30

Re: Samba problem z dostępem

A co się stanie jak nie podasz hasła? Powinien podłączyć


Arch Linux + KDE Plasma 5.12@Core i5 4460 + GTX 750 Ti + 4 GB RAM

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)