View previous topic :: View next topic |
Author |
Message |
manywele l33t
Joined: 12 Jul 2003 Posts: 743 Location: Inside
|
Posted: Sun Jan 30, 2005 9:24 pm Post subject: Weird truncated filenames across samba share |
|
|
I have a bunch of files with names YYYY-MM-DD-HH:MM.jpg in a samba share. The files and the samba server are on my router/server and the share is mounted on my desktop machine.
When I look at the directories from my server I get this:
Code: | -rw-r--r-- 1 bob users 49K Jan 30 09:46 2005-01-30-09:46.jpg
-rw-r--r-- 1 bob users 50K Jan 30 10:16 2005-01-30-10:16.jpg
-rw-r--r-- 1 bob users 50K Jan 30 10:47 2005-01-30-10:47.jpg
-rw-r--r-- 1 bob users 50K Jan 30 11:17 2005-01-30-11:17.jpg
-rw-r--r-- 1 bob users 50K Jan 30 11:47 2005-01-30-11:47.jpg
-rw-r--r-- 1 bob users 50K Jan 30 12:17 2005-01-30-12:17.jpg
-rw-r--r-- 1 bob users 50K Jan 30 12:47 2005-01-30-12:47.jpg |
But when I look at them from my desktop I get this:
Code: | -rw-r--r-- 1 bob users 50K Jan 30 13:17 2BI9CN~V.JPG
-rw-r--r-- 1 bob users 50K Jan 30 12:17 2EBGM8~K.JPG
-rw-r--r-- 1 bob users 49K Jan 30 09:46 2F1750~Y.JPG
-rw-r--r-- 1 bob users 50K Jan 30 12:47 2F5FFC~B.JPG
-rw-r--r-- 1 bob users 50K Jan 30 11:47 2M8R9Z~Y.JPG
-rw-r--r-- 1 bob users 50K Jan 30 11:17 2N2Q32~T.JPG
-rw-r--r-- 1 bob users 50K Jan 30 10:16 2UOVZS~N.JPG
-rw-r--r-- 1 bob users 50K Jan 30 10:47 2VIUSS~T.JPG
|
I think I've traced it down to the colon in the filename. Samba doesn't seem to like that. Can anyone tell me why and how it gets those names?
Long filenames with dashes in them work just fine but even if I
it comes out as
Code: | -rw-r--r-- 1 bob users 0 Jan 30 13:21 A4WTMA~A
|
|
|
Back to top |
|
|
James Wells n00b
Joined: 10 Sep 2004 Posts: 57
|
Posted: Sun Jan 30, 2005 9:48 pm Post subject: Re: Weird truncated filenames across samba share |
|
|
Greetings,
manywele wrote: | I have a bunch of files with names YYYY-MM-DD-HH:MM.jpg in a samba share. The files and the samba server are on my router/server and the share is mounted on my desktop machine. |
Right off the bat, I suspect that you have filename mangling turned on in the smb.conf. IIRC, the entry is 'mangled names' in the smb.conf file |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 743 Location: Inside
|
Posted: Sun Jan 30, 2005 10:22 pm Post subject: |
|
|
No, I don't. In fact I can't find any reference to "mangle" anywhere in /etc/samba.
My smb.conf looks like this (comments removed)
smb.conf wrote: | [global]
workgroup = WORKGROUP
server string = Samba Server %v
log file = /var/log/samba/log.%m
max log size = 500
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/private/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
[share]
comment = local share directory
path = /share
writable = yes
browseable = yes
valid users = bob
public = no
|
And it doesn't do it to long filenames. Just ones with ':' in the name. |
|
Back to top |
|
|
tgnb Apprentice
Joined: 16 Apr 2002 Posts: 208 Location: New York, NY
|
Posted: Mon Jan 31, 2005 2:46 am Post subject: |
|
|
I might be way off base here but Samba is a way to access Windows shares right? And in Windows filenames can't contain a colon ( : ). Therefore maybe Windows is falling back to the 8.3 convention which it uses for files even with names larger than 8.3. |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 743 Location: Inside
|
Posted: Mon Jan 31, 2005 3:34 am Post subject: |
|
|
Both boxen run Gentoo.
It's not a big problem. I can change how the files are named. I'm just really curious why this happens. It does look like the old 8.3 shortening which is one reason I'm curious. Odd that it capitalizes the extension as well.
Don't suppose anybody wants to try this on their samba share? |
|
Back to top |
|
|
|