hi, i was searching in documentation, but havn't find answer to my problem.. i've got shares with long (>12 characters) names, which cannot be changed. on the other hand i need two computers with win98 to see them. can i somehow check versin of connected client and depends on that change names to shorter ones? (i mean - i want all computers (with win xp) to see shares as they see now and those 2 with win98 to see shares with some shorter names). i know i can share one directory with 2 diffrent names, but it's bit ugly (computers with winxp would see both versions). looking for some nicer solution. any hints/links will be appropriated -- ~ ~~ ~ ~~~ ~~~~ ~~~~~~~~~~~~~~~~~, Marcin 'aye' Kryczek ,.,.,.,., mail: aye%gentoo.pl .,.,. RLU: #316599 .,. / ,.,.,.,.,.,.,.,.,.,.,.,.,.,., jid: aye%gentoo.pl ,., PGP: 0xD6CFCCF1 .,. / Key fingerprint = EE8F E832 54E4 2456 C582 5B32 E10F EEDC D6CF CCF1 .,. / ~ ~~ ~ ~~~ ~~~~~.,_/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20050401/6382e2ee/attachment.bin
aye:> hi, i was searching in documentation, but havn't find answer to my > problem.. i've got shares with long (>12 characters) names, which > cannot be changed. on the other hand i need two computers with win98 > to see them. can i somehow check versin of connected client and > depends on that change names to shorter ones? (i mean - i want all > computers (with win xp) to see shares as they see now and those 2 > with win98 to see shares with some shorter names). i know i can > share one directory with 2 diffrent names, but it's bit ugly > (computers with winxp would see both versions). looking for some > nicer solution. > > any hints/links will be appropriatedThere! You said it yourself - kludge symlink longdirectoryname to shortname and put shortname into smb.conf as a share? Make sure you have Samba configured to follow links (Default: follow symlinks yes). --Tonni -- mail: tonye@billy.demon.nl http://www.billy.demon.nl
On Fri, Apr 01, 2005 at 10:57:56PM +0200, Tony Earnshaw wrote:> > There! You said it yourself - kludge symlink longdirectoryname to > shortname and put shortname into smb.conf as a share? Make sure you > have Samba configured to follow links (Default: follow symlinks > yes). >well - that wasn't exactly what i wanted. that way either: 1. computers with windows xp would see both - short and long names (if long names would be shared too) 2. users would lost their symlinks (if longnames would not be shared) anyway: i've managed to do it. i've made: include = /etc/samba/smb.conf.%a in smb.conf and i've created additiona file /etc/samba/smb.conf.Win95 (%a is substitute into Win95 in case when client has win9x) with definitions of shares with shorter names. so if client got win xp that file isn't included and he sees his old longnames. if client got win9x file is included and additional shares with short names are created (he doesn't see long names anyway, so he doesn't see share twice) well - i hope that work - i've made that remotly and i can't test it until i'm outside company;> PS: Sorry Tony - i've mailed this to you instead of ML by mistake -- ~ ~~ ~ ~~~ ~~~~ ~~~~~~~~~~~~~~~~~, Marcin 'aye' Kryczek ,.,.,.,., mail: aye%gentoo.pl .,.,. RLU: #316599 .,. / ,.,.,.,.,.,.,.,.,.,.,.,.,.,., jid: aye%gentoo.pl ,., PGP: 0xD6CFCCF1 .,. / Key fingerprint = EE8F E832 54E4 2456 C582 5B32 E10F EEDC D6CF CCF1 .,. / ~ ~~ ~ ~~~ ~~~~~.,_/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20050402/eefc0234/attachment.bin