[Samba] windows7 can not log on samba domain

salih riza salihriza at gmail.com
Tue May 17 12:22:22 MDT 2011


Hello All.

I have debian 5 samba file server and win clients. have problem with win 7
machines loging to samba domain.
 win xp machines can log on.

i implement this way http://wiki.samba.org/index.php/Windows7

but win7 gives error like "The specified account already exists".
i set up machine accounts on linux

useradd -d /dev/null -g 100 -s /bin/false win7$
and
smbpasswd -a win7$

and my smb.conf is below

what is wrong with me ? :(

[global]
    netbios name = vezir
    workgroup = work
    encrypt passwords = yes
    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* .
    unix password sync = Yes
    security = user
    domain logons = yes
    syslog = 0
    log file = /var/log/samba/log.%m
    max log size = 1000
    os level = 65
    preferred master = Yes
    domain master = Yes
    local master = yes
    dns proxy = No
    panic action = /usr/share/samba/panic-action %d
    admin users = root
    hosts allow = 192.168.1.0/255.255.255.0
    include = /etc/samba/dhcp.conf
    logon drive = H:
    time server = yes



#the below works on Red Hat Linux - other OSs might need a different command
  add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M
%u



[netlogon]
    path = /usr/local/samba/lib/netlogon
    writable = no
    browsable = no


[share]
    comment = open anyone
    path=/root/share
    browseable = yes
    writable = yes
    create mask = 777
    directory mask = 777

[homes]
    comment = Home Directories
    valid users = %S
    create mask = 0700
    directory mask = 0700
    writable=yes
    browseable=yes
    guest ok = no

[printers]
    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    printable = Yes
    browseable = No

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers


More information about the samba mailing list