LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2005, 01:01 PM   #1
chungchungip
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Rep: Reputation: 0
samba file share in multi coding


Hi all,
I'm setting up a samba with redhat 8.0 with samba 2.5.0.
I want a share can save files or directory in tranditional chinese and simplifed chinese which like NT Server or Windows 2K Server.
I have tested tanditional chinese can save. But same time save simplifed chinese is not work. What can I do ?


Thank you !
 
Old 09-12-2005, 02:44 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i wrote a text editor once
http://www.kde-apps.org/content/show.php?content=16492
that has under "Save As" a choice for GBK and Big5
it should work correctly and as far as i know Samba should not interfear
if you mean file names however you have to issue a different mount command
something like
mount -t smbfs -o username=blah,password=blah,codepage=blah,iocharset=blah

wish i knew more
i think NTFS writes all it's filenames as UTF-16
 
Old 09-12-2005, 08:43 PM   #3
chungchungip
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
thanks.

I want the samba share like NTFS. Does Samba support UTF-16 in samba 2.5.0?
 
Old 09-12-2005, 10:50 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i think so
on the windows machine open the DOS prompt and type
chcp
it will return something like
Active Code Page: xxx

so then put (if you put it in /etc/fstab) something like
adjust as needed
Code:
 //server/share /mnt/point smbfs auto,users,uid=500,gid=users,iocharset=utf16,codepage=cpxxx,credentials=/etc/samba/smbpasswd 0 0
or to use mount like above
Code:
 mount -t smbfs -o username=xxx,password=xxx,codepage=cpxxx,iocharset=utf16 //server/share /mnt/point
see if that works
if it complains about utf16 try utf8 cause it might be doing some translating using the codepage ?
 
Old 09-13-2005, 09:43 AM   #5
chungchungip
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Can i add code to smb.conf?
which code should I use?


Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba OS X to Linux Samba file share error ttoomey Linux - Software 1 08-16-2005 10:12 AM
possible to see a Linux SAMBA File share... Russ3482 Linux - Software 1 08-11-2004 02:17 PM
Shell coding, multi-command prompt maniac01 Programming 3 03-02-2004 10:48 AM
MS Access DB File multi User problem with SAMBA hellertech Linux - Networking 0 07-14-2003 05:51 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration