Peter Pellkofer, Siemens AG, AUT GT 2
1998-Dec-16 12:35 UTC
Difference between samba 2.0.0beta4 and NT4.0 ?
Hi Samba-gurus, I have a problem with samba 2.0.0beta4 on solaris 2.5.1 (samba 1.9.18p10 behaves the same) : 1. I have a ordinary text-file on a samba-share (foo.txt). NT4.0 sees the samba-share (\\sun100\tmp) as a netdrive with the letter K:. I've done a 'net use k: \\sun100\tmp'. 2. I can doubleclick in NT4.0-explorer on foo.txt and notepad comes up correctly. 3. I created a shortcut to file foo.txt, getting a file foo.txt.lnk on solaris. In the explorere-property-sheets of the shortcut to foo.txt the sheet shortcut shows the target (in German : Ziel) of the shortcut, in this case K:\foo.txt. Doubleclicking on the shortcut iin explorer starts up notepad also. That's ok. 4. For some reason I want to eliminate the letter K: in the shortcut-properties and want to replace it with the UNC-name of the samba-server (\\sun100\tmp). I edited the shortcut-properties (replacing K:\foo.txt with \\sun100\tmp\foo.txt) and NT4-explorer accepted it (if the path is not correct the explorere gives me an error-message). If I then do a doubleclick on the shortcut, nothing happend, no notepad or error-message copmes up. A real Microsoft-NT-server can handle the UNC-name in the shortcut-properties, I've tried it. The samba-logfile says : [1998/12/16 13:16:04, 2] smbd/open.c:open_file(534) pp3021 opened file foo.txt.lnk read=Yes write=No (numopen=2) [1998/12/16 13:16:04, 2] smbd/close.c:close_file(163) cad closed file foo.txt.lnk (numopen=1) [1998/12/16 13:16:04, 2] smbd/open.c:open_file(534) pp3021 opened file foo.txt.lnk read=Yes write=No (numopen=2) [1998/12/16 13:16:04, 2] smbd/close.c:close_file(163) cad closed file foo.txt.lnk (numopen=1) (My NT-account is pp3021, which is mapped via user.map to my solaris-account cad) Am I missing something, what smbd-configuration-parameters are necessary or is it a bug or incompatibility within samba (samba 1.9.18p10 behaves the same). Any pointers are welcome !!! Cheers, ################################################################## Peter Pellkofer Siemens AG, A&D GT 23 Gleiwitzer Str. 555 90475 Nuernberg-Moorenbrunn peter.pellkofer@nbgm.siemens.de Tel. 0911/895-3021 Fax 0911/895-3762 PGP-Fingerprint : D4 B6 B6 33 D8 81 D4 47 B5 53 B4 1D D2 D4 07 01 ##################################################################
> > I edited the shortcut-properties (replacing K:\foo.txt with > \\sun100\tmp\foo.txt) and NT4-explorer accepted it (if the path > is not correct the explorere gives me an error-message). > > If I then do a doubleclick on the shortcut, nothing happend, > no notepad or error-message copmes up. A real Microsoft-NT-server can > handle the UNC-name in the shortcut-properties, I've tried it. >I tried it here with both with samba-2.0.0beta4 and 2.1prealpha. I can create shortcut with UNC on NT pointing to samba (both versions) and on samba pointing to other samba. All works. I double click on it and get notepad (the file is boot.ini). So something is different. I have pretty vanilla setup on both; both samba's are running with domain securtiy. Can you check, what is really in lnk file (use someting like od or hd). May be, a simple typo? /andrej
Peter Pellkofer, Siemens AG, AUT GT 2
1998-Dec-16 13:33 UTC
Difference between samba 2.0.0beta4 and NT4.0 ?
> > > > If I then do a doubleclick on the shortcut, nothing happend, > > no notepad or error-message copmes up. A real Microsoft-NT-server can > > handle the UNC-name in the shortcut-properties, I've tried it. > > > > > I tried it here with both with samba-2.0.0beta4 and 2.1prealpha. I can > create shortcut with UNC on NT pointing to samba (both versions) and on > samba pointing to other samba. All works. I double click on it and get > notepad (the file is boot.ini). So something is different. I have pretty > vanilla setup on both; both samba's are running with domain securtiy. > > Can you check, what is really in lnk file (use someting like od or hd). May > be, a simple typo? > > /andrej >Andrej: Thanks for your mail. Here is the output of 'od -c foo.txt.lnk'. The samba-server is here not sun100, but ultra305. The od-output doesn't mean anything to me. 0000000 L \0 \0 \0 001 024 002 \0 \0 \0 \0 \0 300 \0 \0 \0 0000020 \0 \0 \0 F 321 \0 \0 \0 \0 \0 \0 200 346 323 236 0000040 355 ( 276 001 200 255 300 025 365 ( 276 001 200 346 323 236 0000060 355 ( 276 001 017 \0 \0 \0 ; \0 \0 \0 001 \0 \0 \0 0000100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 Q \0 024 \0 0000120 037 \0 ` , 215 352 : i 020 242 327 \b \0 + 0 0000140 0 235 020 \0 @ \0 \0 \ \ u l t r a 3 0 0000160 5 \0 024 \0 300 \0 \0 \ \ u l t r a 3 0 0000200 5 \ t m p \0 027 \0 0 \0 \0 \0 \0 \0 \0 \0 0000220 \0 \0 \0 \0 f o o . t x t \0 \0 \0 \0 003 0000240 \0 E \0 : \0 \ \0 ! \0 C \0 : \0 \ \0 W 0000260 \0 I \0 N \0 N \0 T \0 . \0 4 \0 0 \0 0 0000300 \0 \ \0 s \0 y \0 s \0 t \0 e \0 m \0 3 0000320 \0 2 \0 \ \0 S \0 H \0 E \0 L \0 L \0 3 0000340 \0 2 \0 . \0 d \0 l \0 l \0 0000353 I also use domain-security. It can't be a simple typo, because the explorer catches that. The same behaviour happened on a win95-client. Do you use user-mapping ? ################################################################## Peter Pellkofer Siemens AG, A&D GT 23 Gleiwitzer Str. 555 90475 Nuernberg-Moorenbrunn peter.pellkofer@nbgm.siemens.de Tel. 0911/895-3021 Fax 0911/895-3762 PGP-Fingerprint : D4 B6 B6 33 D8 81 D4 47 B5 53 B4 1D D2 D4 07 01 ##################################################################
Peter Pellkofer, Siemens AG, AUT GT 2
1998-Dec-16 14:55 UTC
Difference between samba 2.0.0beta4 and NT4.0 ?
> > Well, the funny thing is, I have at the end the share in Unicode > > ... and you have E:\!C:\WINNT.400\system32\SHELL32.DLL > > This is garbage, sorry. > > > I suspect, this is not what you intended ... Also, my shortcut > > basically encodes the full path "Entire network", "Microsoft > > network", domain, server, share , path on the share - all this is > > completely missing. > > > > But this is real. I do have it, when I rename shortcut from share:dir to UNC > or if I create shortcut directly. > > What happens, if you say "Create shortcut" and select file via Network > neiborhood etc? Does it work? > > You said, you mapped share with net use? Does it work, if you map with > Explorer? > > I don't really see, what SAMBA can do wrong. It only saves lnk file. The > contents is filled by Windoze. > > /andrej >Andrej : I've got it !!! The problem was a 'browseable = no' on my samba-share \\ultra305\tmp. If I do in windoze a execute -> \\ultra305, the new explorer-window, which pops up shows me only my printers and the browseable shares. Nevertheless I can connect to the non-browseable shares with 'net use' or via explorer (because I know the sharename). I set browseable=yes in my smb.conf and the lnk-file is ok, the doubleclick on the shortcut brings notepad up. As far as I understood windoze creates the lnk-file and causes the problem. If the shortcut uses a driveletter, then Windoze creates a correct lnk-file, if the shortcut uses a UNC-name, it doesn't. Can't samba catch this (I don't think so) ? I dont't know NT good enough, can you do a browseable=no on NT also ? What happened then ? But, my problem is solved, thanks for your help. ################################################################## Peter Pellkofer Siemens AG, A&D GT 23 Gleiwitzer Str. 555 90475 Nuernberg-Moorenbrunn peter.pellkofer@nbgm.siemens.de Tel. 0911/895-3021 Fax 0911/895-3762 PGP-Fingerprint : D4 B6 B6 33 D8 81 D4 47 B5 53 B4 1D D2 D4 07 01 ##################################################################