Illegal character handling

Status
Not open for further replies.

desxo

Cadet
Joined
Nov 10, 2016
Messages
3
I currently have multiple deployments with of Freenas and Truenas with a mix of OSX and Windows clients. We constantly have issues with users on OSX systems using illegal characters in filenames but only on our Freenas systems. I have compared the systems and it appears on Truenas all illegal characters appear to Windows users as "". I'm trying to figure out how to mimic this as I have tried mass renaming in the past and have had mixed results.

FreeNAS with illegal characters.
upload_2017-7-20_17-8-1.png

TrueNAS with illegal characters
upload_2017-7-20_17-9-48.png
 

Attachments

  • cap.png
    cap.png
    167.4 KB · Views: 357
  • cap.png
    cap.png
    167.4 KB · Views: 324

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
The FreeNAS server is showing the results of Samba's name mangling algorithm. The TrueNAS server is probably showing alternate behavior based on parameters related to the "fruit" and "catia" VFS objects in your samba share. I can't say for sure without seeing the smb4.conf file from both servers. Pay special attention to the catia:mappings = on the TrueNAS server.
 

desxo

Cadet
Joined
Nov 10, 2016
Messages
3
zfs_fruit and zfs_catia sound like good candidates for the functionality that is being displayed on the TrueNAS but looking at the smb4.conf there I see no entries for either. Any other ideas?
Code:
[global]
	server max protocol = SMB3_11
	encrypt passwords = yes
	dns proxy = no
	strict locking = no
	oplocks = yes
	deadtime = 15
	max log size = 51200
	max open files = 1885574
	logging = file
	load printers = no
	printing = bsd
	printcap name = /dev/null
	disable spoolss = yes
	getwd cache = yes
	guest account = nobody
	map to guest = Bad User
	obey pam restrictions = yes
	directory name cache size = 0
	kernel change notify = no
	panic action = /usr/local/libexec/samba/samba-backtrace
	nsupdate command = /usr/local/bin/samba-nsupdate -g
	server string = TrueNAS Server
	ea support = yes
	store dos attributes = yes
	lm announce = yes
	hostname lookups = yes
	acl allow execute always = true
	dos filemode = yes
	multicast dns register = yes
	domain logons = no
	idmap config *: backend = tdb
	idmap config *: range = 90000001-100000000
	server role = member server
	workgroup = ASDF
	realm = asdf.COM
	security = ADS
	client use spnego = yes
	cache directory = /var/tmp/.cache/.samba
	local master = no
	domain master = no
	preferred master = no
	ads dns update = yes
	winbind cache time = 7200
	winbind offline logon = yes
	winbind enum users = yes
	winbind enum groups = yes
	winbind nested groups = yes
	winbind use default domain = no
	winbind refresh tickets = yes
	idmap config ASDF: backend = rid
	idmap config ASDF: range = 20000-90000000
	allow trusted domains = no
	client ldap sasl wrapping = plain
	template shell = /bin/sh
	template homedir = /home/%D/%U
	netbios name = TRUENAS
	pid directory = /var/run/samba
	create mask = 0666
	directory mask = 0777
	client ntlmv2 auth = yes
	dos charset = CP437
	unix charset = UTF-8
	log level = 1
[Share]
	path = /mnt/tank/Share
	printable = no
	veto files = /.snapshot/.windows/.mac/.zfs/
	writeable = yes
	browseable = yes
	vfs objects = zfs_space zfsacl streams_xattr aio_pthread
	hide dot files = yes
	guest ok = no
	nfs4:mode = special
	nfs4:acedup = merge
	nfs4:chown = true
	zfsacl:acesort = dontcare
 
Status
Not open for further replies.
Top