CIFS Characters changing

Status
Not open for further replies.

maverix

Cadet
Joined
Jan 25, 2012
Messages
6
Hello,

I've just hurdled a big fence when it came to finding a filesystem that would support the wacky naming conventions of my Marketing department. ZFS is working shared out via AFP. However when ZFS is shared via CIFS the names of some of the folders and files get all jumbled.

IE: TSHCT5~X

I know that this can be attributed to a colon in the name or some character that Windows Explorer does not support. This is not the case. We have a Mac OS X server that is sharing these folders as well (Same exact data) via Samba and when I view the files there I can view the folders and files with no issue.

Here is the smb.conf file from the MAC OS X server. I was wondering if there was a way to duplicate this using the command line on the FreeNAS box.


[global]
max smbd processes = 0
encrypt passwords = yes
ntlm auth = YES
allow trusted domains = no
printer admin = @admin, @staff
wins support = no
deadtime = 5
brlm = yes
display charset = UTF-8-MAC
server string = *NAME OF SERVER*
defer sharing violations = no
dos charset = CP437
map to guest = Bad User
log level = 0
auth methods = guest opendirectory
os level = 8
domain master = no
vfs objects = darwin_acls
guest account = unknown
workgroup = Workgroup
lanman auth = YES
local master = yes
unix charset = UTF-8-MAC
client ntlmv2 auth = no
passdb backend = opendirectorysam guest
use spnego = yes
netbios name = *NAME OF SERVER*
[homes]
read only = no
comment = User Home Directories
browseable = no
[*NAME OF SHARE*]
oplocks = 0
map archive = no
vfs objects = darwin_acls
path = *PATH TO SHARE*
read only = no
strict locking = 1
inherit permissions = 0
comment = *NAME OF SERVER*
create mask = 0666
guest ok = 1
directory mask = 0777
[*NAME OF SHARE*]
oplocks = 0
map archive = no
vfs objects = darwin_acls
path = /Working
read only = no
strict locking = 1
inherit permissions = 0
comment = *NAME OF SERVER*
create mask = 0666
guest ok = 1
directory mask = 0777
[*NAME OF SHARE*]
oplocks = 0
map archive = no
vfs objects = darwin_acls
path = *PATH TO SHARE*
read only = no
strict locking = 1
inherit permissions = 0
comment = macosx
create mask = 0664
guest ok = 1
directory mask = 0775
[printers]
printable = yes
path = /tmp
[*NAME OF SHARE*]
oplocks = 0
map archive = no
vfs objects = darwin_acls
path = *PATH TO SHARE*
read only = no
strict locking = 1
inherit permissions = 0
comment = *NAME OF SERVER*
create mask = 0664
guest ok = 1
directory mask = 0775


Please let me know if anyone has had this same issue before.

Thanks!
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
The important parts seems to be:
unix charset = UTF-8-MAC
display charset = UTF-8-MAC

Try using the Auxiliary parameters in CIFS settings
 

maverix

Cadet
Joined
Jan 25, 2012
Messages
6
So just copy and paste

unix charset = UTF-8-MAC
display charset = UTF-8-MAC

into the Aux Parameters?
 
Status
Not open for further replies.
Top