Re: [Samba] SMB2 weird behavior with samba 3.6 PDC
What I meant to say is that Thunderbird downloads every message every time it is launched when I have max protocol = smb2 enabled. Without that line it checks the headers and is done. Even if it's not efficient I don't mind it downloading and caching the message once, but having to do so on every launch takes a lot of time and a lot of bandwidth. --- But SMB2 wouldn't affect the IMAP protocol. Is your local Thunderbird dir stored on a network share? If that's the case, then it's probably the same problem that others are experience about UID's not being resolved consistently (if at all)...that would cause possible file read/write problems and it might think it needs to d/l again. The thunderbird profile is stored on the users home share. This still seems like a SMB2 problem rather than a UID/GID problem since samba 3.6 works fine and thunderbird doesn't try and download every message again as soon as max protocol = smb2 is removed from smb.conf. Wouldn't a UID problem remain regardless of what the max protocol setting was? I don't have a windows server to test against, but surely this isn't acceptable behavior from a windows server. Hopefully one of the samba team members could help debug why all common browsers are unable to download files to a samba share. --- I'ts not just browsers. I was saving a large file (maybe that's the key -- a file that takes a long time to write -- was saving a 2GB image from from photoshop -- couldn't save it AT all.. Had to pull it out of the vfs_recycle to put it in place. I think you're right about many more programs being affected than just browsers. Notepad and thunderbird both seem to have serious problems and not just with large files. I was unable to open a very small html file with notepad and couldn't save my thunderbird preferences so long as smb2 was enabled. Have you opened a bug regarding any of your issues (specifically not being able to save files and them showing up in the samba recycle bin)? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] SMB2 weird behavior with samba 3.6 PDC
On Mon, Aug 15, 2011 at 5:28 PM, Linda Walsh sa...@tlinx.org wrote: ` Mark Reidenbach wrote: I tried enabling SMB2 on our network after upgrading to samba 3.6 and experienced the following problems. Commenting out Max Protocol = SMB2 makes the windows7 and vista clients happy. - [homes] Trying to open a html file in notepad fails on Windows7 Pro SP1. Opening it in Firefox (default browser) or Open Office works ok. - [homes] Mozilla Thunderbird insists on downloading all the IMAP headers each time it is launched on Vista Pro SP2. What is it supposed to do? My client checks for new headers and downloads them all on each launch. Of course what's really fun is when you get to TB3 or above and it copies all of your IMAP folders into your local roaming profile by default (and it isn't easy to disable unless you already know how to do it). Great design...down load all IMAP messages from local server, and then entire mail store gets sent back up to the server in logon (as profile is stored)... and must be synced on login... The Tbird people, apparently didn't (and still refuse to understand that IMAP is a remote file-system that's not designed to have all of it downloaded to each client you login to. Whereas pop, usually when you d/led it, it was off the server (though that later changed -- but it still doesn't keep status the way IMAP does, nor does it have the search functions of IMAP. You can have IMAP create a searchable DB of your email so larger searches are lightning fast...instead, they copied my entire 4.5G mail folder onto each local machine and account i used mozilla on. What I meant to say is that Thunderbird downloads every message every time it is launched when I have max protocol = smb2 enabled. Without that line it checks the headers and is done. Even if it's not efficient I don't mind it downloading and caching the message once, but having to do so on every launch takes a lot of time and a lot of bandwidth. computer or a USB key to samba works ok, but Firefox and Chrome are unable to save files to the samba shares. They download files ok (e.g. file.part) but seem to be unable to rename the file when the download is complete. --- Yeah that was another problem I tried reporting and to get info on over a month ago, but never got a response. Part of my problem (maybe all of it), is they changed the idmap backend -- I was using static UID/GID mappins for the most part, when I went to 3.6, all of my GID's changed and my pwdb got very hosed. Still haven't recovered (most things work, but winbind refuses to return any info on my GUID, even though locally it knows what UID it maps to. But log is filled with GUID lookup errors for mine and random ones -- alot of S-0-0. The problem on the 'that'file is that apparently smb2 opens the file you want to save in, first, but doesn't close it -- then downloads to a .tmp file, and then does a rename over the first (or a copy, not sure which). Anyway server refuses to allow it -- as it thinks the first file is still open. If you have server 'recycle bin' turned on (the samba module), (and use savetree), you'll find the completed files in your recycle bin named with some p.xxx tmp name. Just rename the file from the server and copy it over the first. I don't have a windows server to test against, but surely this isn't acceptable behavior from a windows server. Hopefully one of the samba team members could help debug why all common browsers are unable to download files to a samba share. - [public] Installing programs from samba seems to partially work. Installing Itunes 10.4 for 64 bit windows 7 seemed to work but the Apple Software Update program was not installed (uninstalling, copying iTunes64Setup.exe to the desktop, and running the setup program worked). Odd, I've had a similar prob w/nvidia's sw-update prog -- but I wouldn't have though it to be samba related... Good luck --- I'm back at 3.10 -- and still have figured out how to repair my DB. Apparently the DB format got changed, and isn't backward compat (or something!) -- i.e. when looking up my domain, it tries to look for '*' first, which it then expecs to hve return the domain. I have no '*' entry in my tdb file. Top level entry that everything is under is the Domain name. So many types of lookups don't work. Had lots of performance problems with MSWin swamping my network connection really bad -- so that I couldn't play AV hosted on the server. Tried every downward tuning option available (my net was optimized for SMB1 -- 125MB writes/ 119-121MB/s reads over a 1Gbit net...(max speed, not average!) But I think that the new SMB2 code is much 'tighter in windows, so it executes more quickly so it is difficult for other traffic to get a chance. Unfortunately MS designed their file-serving protocol to be undifferentiable
Re: [Samba] difference between samba and smbclient
On Sun, Aug 14, 2011 at 1:07 PM, alex wallis alexwallis...@googlemail.comwrote: I want to share files from windows 7 64 bit to my distro based off ubuntu 11.04, I am not going to be sharing from linux to windows 7. You culd try something like this: mount -t cifs //server/share /mnt/win7 -o sec=ntlmv2i,user=domain/user,password=passwd -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] [homes] share not created unless linux user has a home directory in /etc/passwd
When adding a domain user to a samba 3.6 PDC I found that the [homes] share was not created. It turns out there was no home directory specified in /etc/password for this user. Once a linux home directory was added the [homes] share worked, but I would expect this to work anyway since a different path is being used for windows home directories than for the linux users. Is this expected behavior or a bug? [homes] comment = Home Directories path = /home/samba/homes/%S strict allocate = yes read only = No create mask = 0700 browseable = No valid users = %S -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] [homes] share not created unless linux user has a home directory in /etc/passwd
The /home/samba/homes/user directory already exists and does not need to be created. The problem is that samba does not create the \\server\user share because it seems to be checking if there is an entry for the linux home directory in /etc/passwd. Adding a value of /home/user to /etc/passwd causes the \\server\user share to be set up and mapped to /home/samba/homes/user even though the passwd home directory, /home/user, does not exist. On Thu, Aug 11, 2011 at 10:13 PM, David Roid datar...@gmail.com wrote: Hello Mark, You can write a preexec script for homes share to check and make home directory under /home/samba/homes, regardless of the home directory value from /etc/passwd. -David 2011/8/12 Mark Reidenbach mark.a.reidenb...@gmail.com When adding a domain user to a samba 3.6 PDC I found that the [homes] share was not created. It turns out there was no home directory specified in /etc/password for this user. Once a linux home directory was added the [homes] share worked, but I would expect this to work anyway since a different path is being used for windows home directories than for the linux users. Is this expected behavior or a bug? [homes] comment = Home Directories path = /home/samba/homes/%S strict allocate = yes read only = No create mask = 0700 browseable = No valid users = %S -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] SMB2 weird behavior with samba 3.6 PDC
I tried enabling SMB2 on our network after upgrading to samba 3.6 and experienced the following problems. Commenting out Max Protocol = SMB2 makes the windows7 and vista clients happy. - [homes] Trying to open a html file in notepad fails on Windows7 Pro SP1. Opening it in Firefox (default browser) or Open Office works ok. - [homes] Mozilla Thunderbird insists on downloading all the IMAP headers each time it is launched on Vista Pro SP2. - [public] Copying files from the local computer or a USB key to samba works ok, but Firefox and Chrome are unable to save files to the samba shares. They download files ok (e.g. file.part) but seem to be unable to rename the file when the download is complete. - [public] Installing programs from samba seems to partially work. Installing Itunes 10.4 for 64 bit windows 7 seemed to work but the Apple Software Update program was not installed (uninstalling, copying iTunes64Setup.exe to the desktop, and running the setup program worked). My smb.conf is: [global] domain logons = Yes domain master = Yes preferred master = Yes workgroup = SYNERGY netbios name = SERVER server string = Office Samba Server passdb backend = tdbsam encrypt passwords = yes min protocol = NT1 max protocol = SMB2 server schannel = yes server signing = mandatory lanman auth = No ntlm auth = No lm announce = No client schannel = yes client signing = auto client ntlmv2 auth = Yes client lanman auth = No client plaintext auth = No client use spnego = No client use spnego principal = No directory name cache size = 500 name resolve order = host wins bcast add machine script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u logon script = logon.cmd logon drive = z: logon path = logon home = \\server\%U dns proxy = No wins support = Yes time server = Yes ldap ssl = no log file = /var/log/samba/%m.log log level = 3 bind interfaces only = yes interfaces = 192.168.13.150/24 127.0.0.1 smb ports = 445 hosts allow = 127.0.0.1, 192.168.13.0/255.255.255.0, 192.168.2.0/255.255.255.0, 192.168.3.0/255.255.255.0, 192.168.100.0/255.255.255.0, 192.168.1.230 hosts deny = 0.0.0.0/0.0.0.0 # printing setup load printers = Yes printing = cups printcap = cups show add printer wizard = Yes # Some defaults to prevent access problems when upgrading (i.e 3.0.23 - 3.0.24 - 3.0.25) host msdfs = yes msdfs root = yes kernel change notify = yes use sendfile = yes # allow enumeration of winbind users and groups winbind enum users = yes winbind enum groups = yes # give winbind users a real shell (only needed if they have telnet access) template shell = /bin/bash lock directory = /var/lib/samba # Samba 3.6 changes idmap config * : backend = tdb2 idmap config * : range = 1000-2 [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = Yes browseable = No read only = Yes [printers] comment = All Printers path = /usr/local/samba/printers read only = Yes create mask = 0777 guest ok = Yes printable = Yes browseable = Yes [print$] comment = Printer Drivers # this path holds the driver structure after cupsaddsmb command path = /usr/local/samba/windows_drivers guest ok = no browseable = yes read only = yes write list = root [public] comment = Public Files path = /home/samba/public strict allocate = yes read only = No create mask = 0777 directory mask = 0777 vfs objects = readahead [homes] comment = Home Directories path = /home/samba/homes/%S strict allocate = yes read only = No create mask = 0700 browseable = No valid users = %S -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] logon script running for xp clients but not 2000 clients
I've run across a problem where the windows 2000 clients do not run the netlogon script when they log in to my domain although the windows xp sp2 clients run the script fine. If I run \\server\netlogon\logon.cmd from the run box once the 2000 machines are logged in, it runs the script and maps drives fine. The other strange thing is that on the affected machines, \\server\homes maps to what is actually the netlogon share (the logon.cmd file is there). Any help would be greatly appreciated. Would this problem show up in any of the log files? I'm running samba 3.0.6 as a PDC and here my smb.conf file: [global] workgroup = SAMBA netbios name = SERVER passdb backend = tdbsam restrict anonymous = 1 lanman auth = No client NTLMv2 auth = Yes client lanman auth = No client plaintext auth = No disable netbios = Yes log file = /var/log/samba/%m.log log level = 3 min protocol = NT1 name resolve order = host bcast server signing = required add machine script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u logon script = logon.cmd logon drive = z: logon path = logon home = \\server\%U domain logons = Yes os level = 50 lm announce = No preferred master = Yes domain master = Yes dns proxy = No wins support = No ldap ssl = no hosts allow = 127.0.0.1, 192.168.13.0/255.255.255.0, 192.168.2.0/255.255.255.0, 192.168.100.0/255.255.255.0 hosts deny = 0.0.0.0/0.0.0.0 [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = Yes browseable = No [homes] comment = Home Directories path = /home/samba/homes/%u read only = No create mask = 0700 [printers] comment = All Printers path = /tmp read only = No create mask = 0777 guest ok = Yes printable = Yes browseable = No [public] comment = Public Files path = /home/samba/public read only = No create mask = 0777 directory mask = 0777 [profiles] comment = Profiles path = /home/samba/profiles/%u read only = No browseable = No [websites] comment = Websites path = /home/vhost force user = backup force group = web read only = No create mask = 0775 force create mode = 0775 security mask = 00 directory mask = 0775 force directory mode = 0775 directory security mask = 00 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba