I use this on my samba server to do various actions on shares: [netlogon] root preexec = /usr/local/sbin/logon.sh -s %S %u %m %I %a root postexec = /usr/local/sbin/logon.sh -k %S %u %m %I %a Since recent mount.cifs release, logon.sh receive this arguments: dossiers cbellega 192.168.65.1 Vista With older release: dossiers cbellega nsat-cdd-pc01 192.168.65.1 CIFSFS Bug: mount.cifs should send machine name and CIFSFS as architecture.
(In reply to comment #0) > I use this on my samba server to do various actions on shares: > > [netlogon] > root preexec = /usr/local/sbin/logon.sh -s %S %u %m %I %a > root postexec = /usr/local/sbin/logon.sh -k %S %u %m %I %a > > Since recent mount.cifs release, logon.sh receive this arguments: > > dossiers cbellega 192.168.65.1 Vista > > With older release: > > dossiers cbellega nsat-cdd-pc01 192.168.65.1 CIFSFS > > Bug: mount.cifs should send machine name and CIFSFS as architecture. Reassigning component to samba... mount.cifs doesn't pass any arguments here. Any arguments passed via the root preexec/postexec are done via samba. So, perhaps a better description of the problem is: "Since a recent release of samba the arguments passed via root preexec and root postexec have changed..." You should also be specific about what version of samba last worked and most recently broke.
..also guessing that this is v4.0.0 since I have no idea what version of samba you're using.
>mount.cifs doesn't pass any arguments here. Any arguments passed via the root >preexec/postexec are done via samba. Strange: - Server is Debian Squeeze - Client is Ubuntu 12.04 => Working as expected - Client is Ubuntu 13.04/Fedora 19 => Not working Does cifs-utils depend on samba version?
(In reply to comment #3) > >mount.cifs doesn't pass any arguments here. Any arguments passed via the root > >preexec/postexec are done via samba. > > Strange: > - Server is Debian Squeeze > - Client is Ubuntu 12.04 => Working as expected > - Client is Ubuntu 13.04/Fedora 19 => Not working > > Does cifs-utils depend on samba version? No, they're completely separate projects. Again, I don't think this has anything to do with cifs-utils. It sounds like your logon.sh scripts is expecting certain arguments from samba, and it's not getting them. I'd look into that.
Created attachment 9145 [details] SMB negotiation packets compared
I can confirm this behavior on Debian wheezy (64 bit) kernel 3.10, cifs-utils 6.1, samba 3.6.17 In the attached wireshark capture, the "Session Setup AndX Request, NTLMSSP_AUTH" packet from a windows machine (first packet, lines 1-218) is compared with the same packet from the linux machine (lines 220-) As you can see on lines 170 (windows) and 433 (mount.cifs), in the first case the client name is regularly sent, while in the second it's NULL. Obviously, the machines are accessing the same samba server (3.0.32). Hope this could help. Regards Claudio
These packets are generated by the kernel, so moving this to correct component.