1834619 Members
3129 Online
110069 Solutions
New Discussion

Re: Samba filename lengh

 
Carter Jay
Advisor

Samba filename lengh

Hello,

Most of the file which are shared on my HPbox, are more than 12 characters long, and when I try to open them, I've got an error message, telling me that the file doesn't exist; this happens for all files longer than 12 characters. All other files can be open and close very well.

Is this a 8dot 3 dos issue?
Can it be corrected?

Regards

Jerome
10 REPLIES 10
harry d brown jr
Honored Contributor

Re: Samba filename lengh

Load linux on your DOS machine?
Live Free or Die
John Poff
Honored Contributor

Re: Samba filename lengh

Hi,

What version of Samba are you running? What kind of machine are you trying to open the files in the share with - DOS, NT, Windows 2000?

It could be a problem with something in your Samba configuration file. Can you post your smb.conf file?

JP
Carter Jay
Advisor

Re: Samba filename lengh

Hi,

Samba is running on a HP box, and I try to access files created with vi locally from a NT sp5 workstation, opening them from the "window explorer" ....

Regards

Jerome
Carter Jay
Advisor

Re: Samba filename lengh

Harry,

If only Linux was the standard here...
The world would be better and ....

Regards

Jerome
John Poff
Honored Contributor

Re: Samba filename lengh

Hi Jerome,

I'm not a Windows expert (actually I'm not an expert in anything, but that never stopped me!), so I'll have to try to help you from the Samba side.

Can you post a copy of your Samba config file (smb.conf)? That might give us some clues about what is going on.

JP
Carter Jay
Advisor

Re: Samba filename lengh

Here is the [Global] from smb.conf file

[global]
workgroup = XXXX
security = SERVER
server string = Samba Server
encrypt passwords = Yes
password server = riri fifi loulou
browseable = yes
load printers = No
local master = No
wins server = 111.111.111.111
guest account = nobodyV
# lock directory = /usr/local/samba/var/%h/locks
lock directory = /var/samba/locks
log file = /usr/local/samba/var/%h/%m.log
max log size = 50
socket options = TCP_NODELAY
deadtime = 15
name resolve order = wins host lmhosts bcast
max open files = 4086
mangled names = no
bind interfaces only = true

Thanks in advance for your help

Regards

Jerome
John Poff
Honored Contributor

Re: Samba filename lengh

Jerome,

I don't use the 'mangled names' option in my Samba configs. The default for 'mangled names' is yes, and when I do a 'testparm' on my box it shows it that way. I'd try commenting out the 'mangled names' option in your smb.conf and trying it again.

Can your NT box create a new file in the share with a long filename?

JP
Carter Jay
Advisor

Re: Samba filename lengh

Yes, I can create long filename from NT...

Regards
John Poff
Honored Contributor

Re: Samba filename lengh

Jerome,

What application in NT are you using to try to open a file with? Are you seeing the file in a regular 'open' window and double-clicking on it? If you bring up the share in Windows Explorer, highlight one of the files, and choose Properties, what does the filename look like?

JP
Darren Prior
Honored Contributor

Re: Samba filename lengh

Hi,

Are you seeing any error messages in the Samba logs when the files are accessed?

Something you might wish to try is using smbclient. There's a man page to guide you basic usage. It'll allow you to check that a given user can access the file via Samba.

It would also be useful to know the revision of Samba/CIFS that you are running.

Finally, check with your NT admins about the PC side - sp5 is pretty old I believe.

regards,

Darren.
Calm down. It's only ones and zeros...