[Samba] long filenames (8.3) issue

Hennie Rautenbach hennie at sabinet.co.za
Thu Jun 9 06:48:14 GMT 2005


Hi there,

We map a Sun Microsystems (Solaris 9) drive to a Windows 2003 server. 
This works fine except for the long UNIX (tm) filenames that are mapped 
as truncated 8.3 filenames on the MS server. Needless to say for backup 
purposes this defeats the object. I have scanned the archives but must 
be looking in the wrong places because I am unable to find a solution to 
this problem. Can anyone assist please ? It will be much appreciated.

Samba:  samba-3.0.9-sol9-sparc-local (retrieved of a solaris-freeware 
mirror)

smb.conf:

[global]

    workgroup = PAPS
    server string = mail.sabinet.co.za
;  hosts allow = 192.168.1. 192.168.2. 127.
    printcap name = /etc/printcap
    load printers = yes
    printing = cups

;  guest account = pcguest
    log file = /usr/local/samba/var/%m.log
    max log size = 0
    security = server
    password server = pappa.sabinet.co.za
;  password server = <NT-Server-Name>
;  password level = 8
;  username level = 8

smb passwd file = /usr/local/samba/lib/smbpasswd

;   ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt

   # unix password sync = Yes
   # passwd program = /usr/bin/passwd %u
   # passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully*

    pam password change = yes
;  username map = /etc/samba/smbusers
;   include = /etc/samba/smb.conf.%m
    obey pam restrictions = yes
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

;   interfaces = 192.168.12.2/24 192.168.13.2/24
interfaces = 192.##.193.110/24

;   remote browse sync = 192.168.3.25 192.168.5.255
;   remote announce = 192.168.1.255 192.168.2.44
;   local master = no
;   os level = 33
;   domain master = yes
;   preferred master = yes
;   domain logons = yes
;   logon script = %m.bat
;   logon script = %U.bat
;   logon path = \\%L\Profiles\%U
;   wins support = yes
;   wins server = w.x.y.z
wins server = 192.96.193.115
;   wins proxy = yes

dns proxy = no

;  preserve case = no
;  short preserve case = no
;  default case = lower
;  case sensitive = no

[homes]
    comment = Home Directories
    browseable = no
    writable = yes
; map to guest = bad user

; [netlogon]
;   comment = Network Logon Service
;   path = /usr/local/samba/lib/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no

;[Profiles]
;    path = /usr/local/samba/profiles
;    browseable = no
;    guest ok = yes


[printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    guest ok = no
    writable = no
    printable = yes

;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   writable = yes
;   printable = no
;   write list = @staff

;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /home/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes

;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no

;[pchome]
;  comment = PC Directories
;  path = /usr/local/pc/%m
;  public = no
;  writable = yes

;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no

;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765
[music]
    comment = Marco's  Stuff
    path = /home/marco
    valid users = root marco mariaan
   # create mode = 0770
   # directory mode = 0770
    public = no
    writable = yes
    printable = no
   # create mask = 0777
    create mask = 0774
    force directory mode = 0774
    force create mode = 0770

[mailbox]
    comment = Courier IMAP Mailbox Area
    path = /mailbox
    valid users =   root super hennie marco
   # create mode = 0770
   # directory mode = 0770
    public = no
    writable = yes
    printable = no
   # create mask = 0777
    create mask = 0774
    force directory mode = 0774
    force create mode = 0770


[data]
    comment = Postgresql Data
    path = /usr/local/pgsql/data
    valid users =   root super
    public = no
    writable = yes
    printable = no
    create mask = 0774
    force directory mode = 0774
    force create mode = 0770

#end

Regards,

Hennie

--------------------------------------------------------------------------------

This transmission is for the intended addressee only and is confidential
information. If you have received this transmission in error, please
delete it and notify the sender. The contents of this e-mail are the
opinion of the writer only and are not endorsed by Sabinet Online
Limited unless expressly stated otherwise.
--------------------------------------------------------------------------------


More information about the samba mailing list