[Please Cc: timball@tux.org on replies because I'm not on the samba list] Setup: Samba 2.0.7 (from debian sid), Linux 2.4.3-XFS, Window95, Windows98 Problem: I have a linux machine that I occationally duel boot and I wanted to be able to share my mp3s directory to my roomate via samba. I figured I'd just make a partition vfat and have both linux and windows export that directory... but under linux there seems to be an odd issue w/ creating a file larger than 800K on the samba share. Symptomps: I've tried multiple ways of creating a file on the samba share. First from the windows machine just copying a file larger than 400K will fail, and throw up a dialog box that says something to the effect "No Permission to create file check w/ sysadmin". But if I right click in the direcotry and create a NewTextFile I can... I can even write stuff into that file... until it gets over 800K... then it fails. Then I mounted the samba share onto my home directory (same machine as the one sharing it) on the linux machine. I can touch and vi files all I want, but if I want to copy anything it just hangs until I <ctrl>-c it. Outstanding issues: I've tried looking in the /var/log/smb file for errors. Conf Files: --snip--snip--snip--smb.conf--snip--snip--snip-- [global] guest account = nobody invalid users = root security = server workgroup = 0x13F.NET syslog only = no syslog = 0 encrypt passwords = yes null passwords = true wins support = yes os level = 155 domain master = yes local master = yes preferred master = yes name resolve order = lmhosts host wins bcast dns proxy = no preserve case = yes short preserve case = yes unix password sync = false passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n*Retype\snew\sUNIX\spassword:* %n\n . max log size = 1000 [mp3s] comment = Mp3s path = /mnt/mp3s guest ok = true create mask = 0775 directory mask = 0775 --snip--snip--snip--smb.conf--snip--snip--snip-- TIA, timball -- Send mail with subject "send pgp key" for public key. pub 1024R/CFF85605 1999-06-10 Timothy L. Ball <timball@sheergenius.com> Key fingerprint = 8A 8E 64 D6 21 C0 90 29 9F D6 1E DC F8 18 CB CD
Hi Tim, It almost sounds like a hard and soft quotas limit on the linux side - any chance that you have quotas enabled on the fs that you are sharing???? Try the following; after you have connected to the share in question from your windows machine, use smbstatus to take a look at the actual linux user that you are connected as. THEN login to your linux server AS the same user, and try to create a file > 800kb on that filesystem that you were accessing from windows. If you CAN, then you have a good suspicion the problem is with the windows access to the linux fs via samba. If you CAN't, then you can start poking around about quotas, etc for that user from the linux side. Good luck, Don -----Original Message----- From: Timothy Ball [mailto:timball@tux.org] Sent: Tuesday, April 24, 2001 3:30 PM To: samba@samba.org Subject: odd error between vfat and samba [Please Cc: timball@tux.org on replies because I'm not on the samba list] Setup: Samba 2.0.7 (from debian sid), Linux 2.4.3-XFS, Window95, Windows98 Problem: I have a linux machine that I occationally duel boot and I wanted to be able to share my mp3s directory to my roomate via samba. I figured I'd just make a partition vfat and have both linux and windows export that directory... but under linux there seems to be an odd issue w/ creating a file larger than 800K on the samba share. Symptomps: I've tried multiple ways of creating a file on the samba share. First from the windows machine just copying a file larger than 400K will fail, and throw up a dialog box that says something to the effect "No Permission to create file check w/ sysadmin". But if I right click in the direcotry and create a NewTextFile I can... I can even write stuff into that file... until it gets over 800K... then it fails. Then I mounted the samba share onto my home directory (same machine as the one sharing it) on the linux machine. I can touch and vi files all I want, but if I want to copy anything it just hangs until I <ctrl>-c it. Outstanding issues: I've tried looking in the /var/log/smb file for errors. Conf Files: --snip--snip--snip--smb.conf--snip--snip--snip-- [global] guest account = nobody invalid users = root security = server workgroup = 0x13F.NET syslog only = no syslog = 0 encrypt passwords = yes null passwords = true wins support = yes os level = 155 domain master = yes local master = yes preferred master = yes name resolve order = lmhosts host wins bcast dns proxy = no preserve case = yes short preserve case = yes unix password sync = false passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n*Retype\snew\sUNIX\spassword:* %n\n . max log size = 1000 [mp3s] comment = Mp3s path = /mnt/mp3s guest ok = true create mask = 0775 directory mask = 0775 --snip--snip--snip--smb.conf--snip--snip--snip-- TIA, timball -- Send mail with subject "send pgp key" for public key. pub 1024R/CFF85605 1999-06-10 Timothy L. Ball <timball@sheergenius.com> Key fingerprint = 8A 8E 64 D6 21 C0 90 29 9F D6 1E DC F8 18 CB CD -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Hi Tim, sorry, I'm stumped. I don't have that type of linux to test it myself on, but what you are saying as far as ownership and permissions makes sense. Maybe you could set log level = 10 and log file = ...../log.%m and reproduce. then take a look at the resulting log file and verify that you are really being authenticated and connected to the share as the user you THINK you are... Also you could use smbstatus and verify the unix user that is being connected is who you expect... The log file should show WHAT is happening at the 800 kb limit that you seem to be experiencing.... Hope this helps Don -----Original Message----- From: Timothy Ball [mailto:timball@tux.org] Sent: Tuesday, April 24, 2001 19:26 To: MCCALL,DON (HP-USA,ex1) Cc: samba@samba.org Subject: Re: odd error between vfat and samba [Note please Cc: timball@tux.org as I am not on the samba mailing list... but if this problem persists I think I may end up signing up] Well I do not have quota installed on the machine (and it's not enabled in the kernel) but I did what you suggested and tryed to create and delte files just on the regular fs as a user... it works great. (the directory in question is my /mnt/mp3s directory and has persmissions like this: drwxrwsr-x 23 smbuser audio 4096 Apr 24 19:11 /mnt/mp3s /mnt/mp3s is vfat partition that I've mounted w/ the appropriate uid, gid, sgid, and umask=002, noexec options. As long as a user is in the "audio" group he/she should be able to create a file in /mnt/mp3s with 664 permissions. (I figure this is the "correct" unix way of it all.) I'm still in the dark (though I'm beginning to suspect vfat is the culprit, but I'm unsure of how to debug it.) --timball On Tue, Apr 24, 2001 at 06:15:40PM -0400, MCCALL,DON (HP-USA,ex1) wrote:> It almost sounds like a hard and soft quotas limit on the linux side - any > chance that you have quotas enabled on the fs that you are sharing????Try> the following; > after you have connected to the share in question from your windowsmachine,> use smbstatus to take a look at the actual linux user that you areconnected> as. > THEN login to your linux server AS the same user, and try to create a file > > 800kb on that filesystem that you were accessing from windows. If youCAN,> then you have a good suspicion the problem is with the windows access tothe> linux fs via samba. If you CAN't, then you can start poking around about > quotas, etc for that user from the linux side. > > -----Original Message----- > Setup: > Samba 2.0.7 (from debian sid), Linux 2.4.3-XFS, Window95, Windows98 > > Problem: > I have a linux machine that I occationally duel boot and I wanted to be > able to share my mp3s directory to my roomate via samba. I figured I'd > just make a partition vfat and have both linux and windows export that > directory... but under linux there seems to be an odd issue w/ creating > a file larger than 800K on the samba share.-- Send mail with subject "send pgp key" for public key. pub 1024R/CFF85605 1999-06-10 Timothy L. Ball <timball@sheergenius.com> Key fingerprint = 8A 8E 64 D6 21 C0 90 29 9F D6 1E DC F8 18 CB CD