Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird truncated filenames across samba share
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Sun Jan 30, 2005 9:24 pm    Post subject: Weird truncated filenames across samba share Reply with quote

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
Code:
touch a:b

it comes out as
Code:
-rw-r--r--  1 bob users 0 Jan 30 13:21 A4WTMA~A
Back to top
View user's profile Send private message
James Wells
n00b
n00b


Joined: 10 Sep 2004
Posts: 57

PostPosted: Sun Jan 30, 2005 9:48 pm    Post subject: Re: Weird truncated filenames across samba share Reply with quote

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
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Sun Jan 30, 2005 10:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
tgnb
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 208
Location: New York, NY

PostPosted: Mon Jan 31, 2005 2:46 am    Post subject: Reply with quote

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
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Mon Jan 31, 2005 3:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum