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
by the way, my samba version is 3.2.5. client is windows 7 professional 2011/5/17 salih riza <salihriza at gmail.com>> 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 > >
> by the way, my samba version is 3.2.5. client is windows 7 professional >I am not sure if this is the problem but on that page you linked from the wiki it says: Support for Windows 7 and Windows 2008 using Samba Domain Controllers has been added to the following versions: Samba 3.4 or later Samba 3.3.5 or later Samba 3.3.2, 3.3.3 and 3.3.4 (with NOTES) Samba 3.2.12 or later John
---------- Forwarded message ---------- From: salih riza <salihriza at gmail.com> Date: 2011/5/17 Subject: Re: [Samba] windows7 can not log on samba domain To: John Drescher <drescherjm at gmail.com> new version is 3.4.7 now. it is on ubuntu 10.4. but give me same error. "The specified account already exists". :(. 17 May?s 2011 22:32 tarihinde salih riza <salihriza at gmail.com> yazd?:> > Oooops. i think i saw 3.3.5 like 3.2.5. working more than 10 hour. sorry for innocence and carelessness. i try upgrade :). thanks > > 2011/5/17 John Drescher <drescherjm at gmail.com> >> >> > by the way, my samba version is 3.2.5. client is windows 7 professional >> > >> >> I am not sure if this is the problem but on that page you linked from >> the wiki it says: >> >> Support for Windows 7 and Windows 2008 using Samba Domain Controllers >> has been added to the following versions: >> >> ? ?Samba 3.4 or later >> ? ?Samba 3.3.5 or later >> ? ?Samba 3.3.2, 3.3.3 and 3.3.4 (with NOTES) >> ? ?Samba 3.2.12 or later >> >> John >-- John M. Drescher
---------- Forwarded message ---------- From: salih riza <salihriza at gmail.com> Date: Tue, May 24, 2011 at 10:27 AM Subject: Re: [Samba] windows7 can not log on samba domain To: John Drescher <drescherjm at gmail.com> yeah i did it. The error that win7 gives is "The specified account already exists". and i remove samba machine account . smbpasswd -x win7$ and problem solved. thanks :) -- John M. Drescher