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
Time (s) | Query |
---|---|
0.00008 | SET CHARSET latin2 |
0.00003 | SET NAMES latin2 |
0.00058 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.116.90.161' WHERE u.id=1 |
0.00094 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.116.90.161', 1732769050) |
0.00034 | SELECT * FROM punbb_online WHERE logged<1732768750 |
0.00089 | SELECT topic_id FROM punbb_posts WHERE id=294364 |
0.00005 | SELECT id FROM punbb_posts WHERE topic_id=27997 ORDER BY posted |
0.00031 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=27997 AND t.moved_to IS NULL |
0.00029 | SELECT search_for, replace_with FROM punbb_censoring |
0.00096 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=27997 ORDER BY p.id LIMIT 0,25 |
0.00064 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=27997 |
Total query time: 0.00511 s |