[Samba] Setting 'unix charset' kills the samba share

Rowland Penny rpenny at samba.org
Mon Jan 14 22:23:53 UTC 2019


On Mon, 14 Jan 2019 16:27:04 -0500
Gilbert Soucy <gsoucy at 36pix.com> wrote:

> Yes, I have tried testparam. All is OK  . Note that I can write
> anything for    unix charset   and testparm does not complain.
> 
> Load smb config files from /etc/samba/smb.conf
> rlimit_max: increasing rlimit_max (1024) to minimum Windows limit
> (16384) Processing section "[zinc1]"
> Loaded services file OK.
> Server role: ROLE_DOMAIN_MEMBER
> 
> 
> The systeme locale :
> 
> [root at zinc samba]# locale
> LANG=en_CA.iso88591
> LC_CTYPE="en_CA.iso88591"
> LC_NUMERIC="en_CA.iso88591"
> LC_TIME="en_CA.iso88591"
> LC_COLLATE="en_CA.iso88591"
> LC_MONETARY="en_CA.iso88591"
> LC_MESSAGES="en_CA.iso88591"
> LC_PAPER="en_CA.iso88591"
> LC_NAME="en_CA.iso88591"
> LC_ADDRESS="en_CA.iso88591"
> LC_TELEPHONE="en_CA.iso88591"
> LC_MEASUREMENT="en_CA.iso88591"
> LC_IDENTIFICATION="en_CA.iso88591"
> LC_ALL=
> 
> 
> On the command prompt on that server, I can see the file with proper
> accents.
> 
> [root at zinc samba]# ls /pro.orders/327729-1/PHCD
> COLLEGE1 * COLL√ąGE1 * _PHCD_EXPECTED_QTY=148.txt
> 
> 
> 
> I dont get it: sometimes smbd starts, sometimes it does not.  But in
> all cases ,the share is not accessible ( when  unix charset is set ).
> Right now, I have those smb processes
> 
> 
> [root at zinc samba]# ps -ef|grep smb
> root     15817     1  0 16:21 ?        00:00:00 /usr/sbin/smbd
> --foreground --no-process-group
> root     15819 15817  0 16:21 ?        00:00:00 /usr/sbin/smbd
> --foreground --no-process-group
> root     15820 15817  0 16:21 ?        00:00:00 /usr/sbin/smbd
> --foreground --no-process-group
> root     15838 15817  0 16:21 ?        00:00:00 /usr/sbin/smbd
> --foreground --no-process-group
> 
> 
> [root at zinc samba]# ps -ef|grep winb
> root     16229     1  0 16:24 ?        00:00:00 /usr/sbin/winbindd
> --foreground --no-process-group
> root     16234 16229  0 16:24 ?        00:00:00 /usr/sbin/winbindd
> --foreground --no-process-group
> root     16237 16229  0 16:24 ?        00:00:00 /usr/sbin/winbindd
> --foreground --no-process-group
> root     16238 16229  0 16:24 ?        00:00:00 /usr/sbin/winbindd
> --foreground --no-process-group
> 
> Anything else I should list ?
> 

The last things I can think of to do now are:
run 

testparm -v | grep 'dos charset'

and

testparm -v | grep 'unix charset'

(with neither in smb.conf) to see what the defaults are.

Turn up logging to see if anything else pops out.

Stop Samba, then manually start the Samba binaries (in a terminal) with
smbd -D and winbindd -D, see if that makes any difference

If all else fails, move from Canada to England, we don't have
accents ;-)

Rowland



More information about the samba mailing list