MI
2019-Dec-11  14:23 UTC
[Samba] Mac clients trouble with NFD accented characters on Samba share
File names on a Samba share with accented characters using the NFD form 
of UTF8 cannot be seen or used by Mac clients.
While tying to find a solution, I came across this old thread : 
https://lists.samba.org/archive/samba/2014-December/187545.html 
("[Samba] Mount unix samba 4 share to osx client without mangled file 
names")
A reply in that thread suggested:
>     >/Do I have to tell osx to simply use utf-8 nfc encoding for the
samba />/share? Or is there some special samba server/client config? /
>     yes. vfs_fruit and
>
>        fruit:encoding = native
>
So I enabled vfs_fruit, but it doesn't seem to help for accented 
characters. Maybe it only solves a problem with illegal characters?
This is what I tried, but which didn't help:
Create the folders/files on the Samba server (Debian 9, smbd version 
4.5.16) :
    mkdir v?los_1                     # normal NFC dir
    mkdir "ve$(printf '\u301')los_2"  # NFD dir
    cd v*_1
    echo "NFC" >> v?lo.txt
    cd ../v*_2
    echo "NFD" >> "ve$(printf '\u301')lo.txt"
This is my samba config:
    # testparm -s
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit
    (16384)
    Processing section "[homes]"
    Processing section "[share]"
    Processing section "[temp]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    # Global parameters
    [global]
     ??? os level = 255
     ??? preferred master = Yes
     ??? log file = /var/log/samba/%m.log
     ??? max log size = 1000
     ??? panic action = /usr/share/samba/panic-action %d
     ??? usershare allow guests = Yes
     ??? disable spoolss = Yes
     ??? load printers = No
     ??? show add printer wizard = No
     ??? client signing = No
     ??? map to guest = Bad User
     ??? obey pam restrictions = Yes
     ??? pam password change = Yes
     ??? passwd chat = *Enter\snew\s*\spassword:* %n\n
    *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
     ??? passwd program = /usr/bin/passwd %u
     ??? security = USER
     ??? server role = standalone server
     ??? unix password sync = Yes
     ??? dns proxy = No
     ??? fruit:encoding = native
     ??? fruit:locking = netatalk
     ??? fruit:metadata = netatalk
     ??? fruit:resource = file
     ??? idmap config * : backend = tdb
     ??? ea support = Yes
     ??? smb encrypt = No
     ??? vfs objects = catia fruit streams_xattr
    [homes]
     ??? ...
    [share]
     ??? ...
    [temp]
     ??? comment = on /home for tests, temp etc.
     ??? path = /home/temp
     ??? force user = alma
     ??? guest ok = Yes
     ??? read only = No
I could set up a cron job to rename all the problem files and folders 
every night using convmv.
But before doing that, I would like to make sure I'm not overlooking a 
simpler solution through the Samba configuration.
Thanks for any help,
MI
Ralph Boehme
2019-Dec-11  14:49 UTC
[Samba] Mac clients trouble with NFD accented characters on Samba share
Am 12/11/19 um 3:23 PM schrieb MI via samba:> File names on a Samba share with accented characters using the NFD form > of UTF8 cannot be seen or used by Mac clients.yes, Samba expects NFC. Use convmv to fix your filenames. -slow -- Ralph Boehme, Samba Team https://samba.org/ Samba Developer, SerNet GmbH https://sernet.de/en/samba/ GPG-Fingerprint FAE2C6088A24252051C559E4AA1E9B7126399E46
Reasonably Related Threads
- Converting OS X UTF-8 NFD to UTF-8 NFC
- Mount unix samba 4 share to osx client without mangled file names
- Mount unix samba 4 share to osx client without mangled file names
- Mount unix samba 4 share to osx client without mangled file names
- Clients send tons of Notiftication requests