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
To nie jest tylko forum, to nasza mała ojczyzna ;-)

[ Generated in 0.007 seconds, 11 queries executed ]

Informacje debugowania

Time (s) Query
0.00009 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00105 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='3.145.103.100' WHERE u.id=1
0.00079 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.145.103.100', 1732762702)
0.00045 SELECT * FROM punbb_online WHERE logged<1732762402
0.00050 SELECT topic_id FROM punbb_posts WHERE id=294394
0.00055 SELECT id FROM punbb_posts WHERE topic_id=27997 ORDER BY posted
0.00047 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.00005 SELECT search_for, replace_with FROM punbb_censoring
0.00087 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.00072 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=27997
Total query time: 0.00558 s