Short Names : samba and WinNT/2K differs

Yves Gattegno samba at qualystem.com
Sat Oct 6 07:09:03 GMT 2001


En réponse à Dragos <dragos.delcea at farmexim.ro>:

> hello Yves,
> I'm no expert, but you may try doing a 'chcp' on a dos prompt on win98,
> same 
> on win2000 (don't know if it is called the same on w2000), and a 
> testparm|grep 'client code page' on the samba server...
> maybe it's a codepage fault (they must be the same).

Thanks for your comments.
Unfortunately, it is not a code page fault.
The man pages for smb.conf specify the algorithm for mangled
names: Mangled names first 5 characters are the "same" than 
the characters in long names (they have been upper cased), then
you have the mangle character (~ by default), then you have a hash code
(2 characters).
This is not the way DOS/Windows use short names...

I thought of a dirty workaround :
I could use symbolic links. The link name would be the "correct"
short name and it would link to the appropriate long name.

I tried this manually and it works but it is really dirty and I
would prefer a method that would make samba building the
"correct" mangled names ("correct" means there the short names
DOS/Windows would use for the same tree diagram.
 
TIA

Yves


> But don't take my word for it, maybe it's something else...
> hope this helps
> 
> dragos
> 
> On Friday 05 October 2001 07:38 pm, Yves Gattegno wrote:
> > Hi
> >
> > I use a samba server and a Win2000 server.
> > Both servers hold the VERY SAME files and folder tree.
> >
> > However, when I issue a DIR command on the tree held on the
> > samba server I have different shortnames than when the DIR
> > command is issued on the similar tree held on the Win2000 server.
> >
> > I NEED the short names to be the same, whether the DIR command
> > is issued on Samba server or on Window server.
> > I need this because some paths are stored as short names in the
> > registry, and the "good" short names are Windows' ones.
> > (This is for our project of Windows 9X diskless workstations
> > booting from Samba server).
> >
> > For instance, the short name associated to "Program Files" folder
> > is "PROGRA~1" on Windows server and "PROGR~-I" on Samba server.
> >
> > I need that this name is "PROGRA~1" on both server.
> >
> >
> > Here are the results for DIR commands issued from a Windows 98
> > SE workstation, once connected to a Windows server, once connected
> > to a samba server
> >
> > On Windows Server:
> >
> >   Le volume dans le lecteur G est caviar6-2
> >   Répertoire de G:\
> >
> > .              <REP>        10-05-01  6:27p .
> > ..             <REP>        10-05-01  6:27p ..
> > DOWNLO~1       <REP>        10-05-01 12:22p Downloads
> > MESDOC~1       <REP>        10-05-01 12:20p Mes documents
> > PROGRA~1       <REP>        10-05-01 12:22p Program Files
> > RECYCLED       <REP>        09-11-01  9:56p RECYCLED
> > WINDOWS        <REP>        10-05-01 12:23p WINDOWS
> > games          <REP>        10-05-01 12:18p games
> > temp           <REP>        10-04-01  6:11p temp
> > MSDOS    ---            22  08-30-01  7:15p MSDOS.---
> > SYSTEM   1ST       540,704  08-30-01  7:22p SYSTEM.1ST
> > AUTOEXEC BAK           330  10-05-01 12:13p AUTOEXEC.BAK
> > AUTOEXEC BAT           330  10-05-01 12:13p AUTOEXEC.BAT
> > DRVSPACE BIN        69,127  05-05-99  8:22p DRVSPACE.BIN
> > VIDEOROM BIN        40,960  08-30-01  7:45p VIDEOROM.BIN
> > COMMAND  COM        95,874  05-05-99  8:22p COMMAND.COM
> > SUHDLOG  DAT         5,166  08-30-01  7:22p SUHDLOG.DAT
> > SCANDISK LOG           481  09-20-01  9:56p SCANDISK.LOG
> > BOOTLOG  PRV        47,519  08-30-01  7:45p BOOTLOG.PRV
> > CONFIG   SYS           185  09-21-01  7:44p CONFIG.SYS
> > IO       SYS       222,390  05-05-99  8:22p IO.SYS
> > MSDOS    SYS         1,676  08-30-01  7:33p MSDOS.SYS
> > BOOTLOG  TXT        50,944  08-30-01  7:51p BOOTLOG.TXT
> > DETLOG   TXT        71,149  08-30-01  7:31p DETLOG.TXT
> > FRUNLOG  TXT         1,017  08-30-01  7:30p FRUNLOG.TXT
> > NETLOG   TXT         2,911  08-30-01  7:43p NETLOG.TXT
> > SETUPLOG TXT       115,919  08-30-01  7:43p SETUPLOG.TXT
> >          18 fichier(s)          1,266,704 octets
> >           9 répertoire(s)        3,733.75 Mo libre
> >
> >
> > On samba server:
> >
> >   Le volume dans le lecteur M est WIN98SE
> >   Répertoire de M:\
> >
> > .              <REP>        10-05-01  6:20p .
> > ..             <REP>        10-04-01  4:08p ..
> > DOWNL~5C       <REP>        10-05-01  1:18p Downloads
> > MESDO~CK       <REP>        10-05-01  1:14p Mes documents
> > PROGR~-I       <REP>        10-05-01  1:18p Program Files
> > RECYCLED       <REP>        09-10-01  8:45p RECYCLED
> > WINDOWS        <REP>        10-05-01  1:18p WINDOWS
> > games          <REP>        10-05-01  1:11p games
> > temp           <REP>        10-05-01  1:17p temp
> > MSDOS    ---            22  08-30-01  7:15p MSDOS.---
> > SYSTEM   1ST       540,704  08-30-01  7:22p SYSTEM.1ST
> > AUTOEXEC BAK           330  10-05-01 12:13p AUTOEXEC.BAK
> > AUTOEXEC BAT           330  10-05-01 12:13p AUTOEXEC.BAT
> > DRVSPACE BIN        69,127  05-05-99  8:22p DRVSPACE.BIN
> > VIDEOROM BIN        40,960  08-30-01  7:45p VIDEOROM.BIN
> > COMMAND  COM        95,874  05-05-99  8:22p COMMAND.COM
> > SUHDLOG  DAT         5,166  08-30-01  7:22p SUHDLOG.DAT
> > SCANDISK LOG           481  09-20-01  9:56p SCANDISK.LOG
> > BOOTLOG  PRV        47,519  08-30-01  7:45p BOOTLOG.PRV
> > CONFIG   SYS           185  09-21-01  7:44p CONFIG.SYS
> > IO       SYS       222,390  05-05-99  8:22p IO.SYS
> > MSDOS    SYS         1,676  08-30-01  7:33p MSDOS.SYS
> > BOOTLOG  TXT        50,944  08-30-01  7:51p BOOTLOG.TXT
> > DETLOG   TXT        71,149  08-30-01  7:31p DETLOG.TXT
> > FRUNLOG  TXT         1,017  08-30-01  7:30p FRUNLOG.TXT
> > NETLOG   TXT         2,911  08-30-01  7:43p NETLOG.TXT
> > SETUPLOG TXT       115,919  08-30-01  7:43p SETUPLOG.TXT
> >          18 fichier(s)          1,266,704 octets
> >           9 répertoire(s)     654,311,424 octets libres
> >
> >
> > I use Samba version 2.0.7
> >
> > I tried the parameter
> > mangled name = no
> > but it does not work (the short names then are just truncated).
> >
> > Any help appreciated
> >
> > Yves Gattegno
> >
> >
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
> 




More information about the samba mailing list