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!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
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
[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
W homes nie masz :
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.
[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
przy Twoim configu i takim udostępnieniem
[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
A co się stanie jak nie podasz hasła? Powinien podłączyć
Offline