John Ryan wrote:
Hi,
Not sure if this should be zfs-discuss or cifs-discuss, but it's a CIFS
related problem.
We have several Mac users who like to use strange characters, like
><?&$# in file/folder names.
The behavior from a native Windows server or an EMC NAS, is to disallow
using these characters. However, on Solaris CIFS, they are allowed.
I tried the utf8only option to zfs create, but it doesn't stop a Mac
utf8only won't stop this because these are valid UTF-8 characters.
utf8only is a good thing if there is a chance of users using
iso8859, EUC or other charsets to create file names (locally,
over NFS or some other protocol). If everyone is using ASCII,
it should be okay because all ASCII characters are valid UTF-8
characters. Of course, you might still want to set utf8only
in case someone attempts to download a strange file name from
somewhere to avoid sharing issues.
creating these files. From a Mac, I created a folder "<?" and this is
how it looks:
r...@bs-ssvr07:/data/utf8test# ls -l
total 43
d---------+ 2 ryanj domain1 2 Dec 27 21:49 ï£ï¥
r...@bs-ssvr07:/data/utf8test# zfs get utf8only data/utf8test
NAME PROPERTY VALUE SOURCE
data/utf8test utf8only on -
The folders are usable from a Mac or Windows (even though the names look
different on Windows), but not easily from Unix/Linux.
Is there any way to prohibit a Mac doing this?
I believe we fixed this in snv_131:
6899950 Able to create a folder with name containing invalid
character such as | from DOS cmd
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6899950
I don't know if build 131 is available for OpenSolaris yet.
You can check here:
http://pkg.opensolaris.org/dev/en/index.shtml
Note: If you allow both NFS and SMB access, Mac users will still
be able to create such file names over NFS because these are legal
characters in UNIX file names. This is being tracked by
6564083 Need to handle POSIX characters that are not legal on CIFS
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6564083
Alan
_______________________________________________
cifs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/cifs-discuss