Re: [Samba] Oplocks
On Mon, Jul 19, 2010 at 05:20:50PM +0200, Volker Lendecke wrote: Right. Then it's a bug. You might contact your RPM provider for support of this old Samba version. Is Samba 3.3.8 also too old? It suffers from the same problem. -- Lukáš Hejtmánek -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Oplocks
Hello, I'm using the Samba server 3.0.33 that exports volume from a GPFS. The GPFS strongly dislikes unlinking files that are locked (resulting in permission denied) using fcntl F_SETLEASE. It seems that the Samba *sometimes* tries to unlink a file that is oplocked. Why? Is this a bug? Why it does not happen always but only sometimes? I have strace logs showing: Wrong case: 8711 14:57:50.765677 open(Y_odloz/D8/D8_03_Ivet_98/06aa6459-a011-40f8-bfb1-25d15e7ada61, O_RDWR|O_CREAT|O_EXCL, 0744) = 121 8711 14:57:50.766030 fstat(121, {st_dev=makedev(0, 23), st_ino=3079419, st_mode=S_IFREG|0744, st_nlink=1, st_uid=40022, st_gid=400, st_blksize=262144, st_blocks=0, st_size=0, st_atime=2010/07/13-14:57:50, st_mtime=2010/07/13-14:57:50, st_ctime=2010/07/13-14:57:50}) = 0 8711 14:57:50.766129 fcntl(12, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=8260, len=1}) = 0 8711 14:57:50.766214 fcntl(121, F_SETSIG, 0x23) = 0 8711 14:57:50.766275 fcntl(121, F_SETLEASE, 0x1) = 0 [...] 8711 14:57:50.789570 stat(Y_odloz/D8/D8_03_Ivet_98/06aa6459-a011-40f8-bfb1-25d15e7ada61, {st_dev=makedev(0, 23), st_ino=3079419, st_mode=S_IFREG|0744, st_nlink=1, st_uid=40022, st_gid=400, st_blksize=262144, st_blocks=0, st_size=0, st_atime=2010/07/13-14:57:50, st_mtime=2010/07/13-14:57:50, st_ctime=2010/07/13-14:57:50}) = 0 8711 14:57:50.789685 unlink(Y_odloz/D8/D8_03_Ivet_98/06aa6459-a011-40f8-bfb1-25d15e7ada61) = -1 EACCES (Permission denied) [...] 8711 14:58:20.785599 fcntl(121, F_SETSIG, 0x23) = 0 8711 14:58:20.785660 fcntl(121, F_SETLEASE, 0x2) = 0 8711 14:58:20.785736 close(121)= 0 Correct case: 8711 15:02:01.279971 open(Y_odloz/D8/D8_03_Ivet_98/0720d2bf-8619-4ecb-a2eb-d2b806941539, O_RDWR|O_CREAT|O_EXCL, 0744) = 166 8711 15:02:01.333073 fstat(166, {st_dev=makedev(0, 23), st_ino=3164278, st_mode=S_IFREG|0744, st_nlink=1, st_uid=40022, st_gid=400, st_blksize=262144, st_blocks=0, st_size=0, st_atime=2010/07/13-15:02:01, st_mtime=2010/07/13-15:02:01, st_ctime=2010/07/13-15:02:01}) = 0 8711 15:02:01.333221 fcntl(12, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=24956, len=1}) = 0 8711 15:02:01.09 fcntl(166, F_SETSIG, 0x23) = 0 8711 15:02:01.71 fcntl(166, F_SETLEASE, 0x1) = 0 [...] 8711 15:02:01.424660 fcntl(166, F_SETSIG, 0x23) = 0 8711 15:02:01.424734 fcntl(166, F_SETLEASE, 0x2) = 0 [...] 8711 15:02:01.513181 stat(Y_odloz/D8/D8_03_Ivet_98/0720d2bf-8619-4ecb-a2eb-d2b806941539, {st_dev=makedev(0, 23), st_ino=3164278, st_mode=S_IFREG|0744, st_nlink=1, st_uid=40022, st_gid=400, st_blksize=262144, st_blocks=0, st_size=0, st_atime=2010/07/13-15:02:01, st_mtime=2010/07/13-15:02:01, st_ctime=2010/07/13-15:02:01}) = 0 8711 15:02:01.513393 unlink(Y_odloz/D8/D8_03_Ivet_98/0720d2bf-8619-4ecb-a2eb-d2b806941539) = 0 [...] 8711 15:02:01.514906 fcntl(12, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=24956, len=1}) = 0 8711 15:02:01.515005 close(166)= 0 -- Lukáš Hejtmánek -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Oplocks
On Mon, Jul 19, 2010 at 03:40:32PM +0200, Volker Lendecke wrote: You're sure that you are not exporting the same file space via two different nodes simultaneously? In theory, what you describe should not happen, at least not with current Samba. I'm not sure about ancient 3.0.33, but with current Samba this can only happen if you run Samba on the same file system from two different nodes. This is an invalid configuration, you need to use the clustered Samba with ctdb for that. I have only one samba server for a GPFS volume so I should not need clustered Samba. Am I right? -- Lukáš Hejtmánek -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Backup files from Windows application
Hello, I'm using sama 3.0.24 on linux machine that serves a share for a windows client. When editing a file on samba, using MS Word I can see there are severals (probably) backup files. ls looks like this: Dotaznik1.doc ~$taznik1.doc ~WRD.tmp ~WRD0001.tmp ~WRD0002.tmp ~WRD0003.tmp ~WRD0004.tmp These files do not disappear after I quit the Word. This does not happen if I edit the files locally, the backup files are created but deleted after application quits. Is it something samba related? the share looks like: [uvt] comment = UVT For testing browseable = yes writable = yes path = /mnt/export2/smb/UVT guest ok = no create mask = 0644 directory mask = 0755 public = yes valid users = some users -- Lukáš Hejtmánek -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba authentication
Hello, I wonder whether there is a way to authenticate samba against NTLM2 enabled radius server without using encrypt passwords = no. I really have no other option than this. My situation is as follows. I have an organization that runs Microsoft Windows Server 2003 which is used as AD. This AD shares passwords with many information systems in our organisation and I would like to use these passwords also for samba users. Administrators of AD disagree to add my samba server to their AD. No way here. They agree to export LDAP (without passwords), Kerberos or Radius and possibly other services but not AD itself. Is there a way to authenticate my samba against their authentication service? If there is no way per-se, would it be possible to modify windbindd to authenticate via NTLM2 against the Radius server instead of AD? -- Lukáš Hejtmánek -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba authentication
On Tue, Aug 18, 2009 at 04:24:31PM -0400, Robert Freeman-Day wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Have you tried putting the following line in the [global] section of your smb.conf file? client ntlmv2 auth = yes and what should I put there if I want to authenticate with radius server and not with ADS? -- Lukáš Hejtmánek -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba