[RESOLVED] samba national character problem.

This forum is for all other ARMv5 devices

[RESOLVED] samba national character problem.

Postby Guest » Wed Jan 25, 2012 10:17 pm

Hi,

Transmission made directories and files containing East EU characters in names.
I mount root directory with cifs mount.
$this->bbcode_second_pass_code('', 'sudo mount -t cifs //192.168.1.43/nas /mnt/nas -o guest,uid=1000,gid=1000,iocharset=utf8')

Directories and filenames containing long characters are problematic. I see them, but sometimes they are disappear! And can't read/enter them.

Any suggestion?

Robert

Relevant smb.conf part:

$this->bbcode_second_pass_code('', '[root@alarm samba]# /etc/rc.d/samba stop
:: Stopping Samba Server [DONE]
[root@alarm samba]# testparm
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 "[printers]"
Processing section "[NAS]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
dos charset = 852
unix charset = UTF8
display charset = UTF8
server string = Samba Server
security = SHARE
guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 50
disable netbios = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
load printers = No
printcap name = /dev/null
disable spoolss = Yes
dns proxy = No
idmap config * : backend = tdb
hosts allow = 192.168.1., 127.
printing = bsd
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
print ok = Yes
browseable = No

[NAS]
path = /
force user = root
read only = No
guest ok = Yes
[root@alarm samba]# /etc/rc.d/samba start
:: Starting Samba Server ')
Guest
 

Re: samba national character problem.

Postby Guest » Fri Jan 27, 2012 9:53 pm

Hi,

No one else have this problem, but me alone in the word. :) Probably no interest at all.
Anyway, for me and the history...

The solution:
cifs mount with iocharset=utf8 option.

$this->bbcode_second_pass_code('', '
sudo mount -t cifs //192.168.1.43/nas /mnt/nas -o guest,uid=1000,gid=1000,iocharset=utf8
')

Problem solved.

If some old files -created before mounting with utf8- remains unreadable , just rename them and will be ok.

Detox- is a very good application to remove non utf8 compliment characters from directory and filenames at once.
Detox available for archlinux and for ubuntu repositories.

Robert.
Guest
 


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 4 guests