For more information about how Samba is used as a file server in Linux, see Linux Enterprise Application-Linux server application. The scope of this article is the problems encountered during samba usage.
Problem 1: On the win2000 client, the file name is written in Chinese and changed to garbled Characters Under the linux Command Line. How can this problem be solved?
Solution: unicode is not supported in the command line. For general purpose, force samba to use GB2312. Add a line in [global]: unix charset = GB2312. Note: it is best to set it to GBK. Otherwise, some characters may go wrong, causing unavailability of the roaming account.
Question 2: comment can be used for annotation in shared directory settings, but Chinese characters are garbled during reading on the win client. How can this problem be solved?
Solution: in the [global] section, add a row: display charset = GB2312. samba must be above 3.0.
Question 3: How can I open shared resources to anonymous (guest) users?
Solution: in the [global] section, add a row: map to guest = bad user and add two rows in the corresponding shared resource section: guest account = nobody guest OK = Yes so that all users without an account and wrong password can connect to this shared resource. when accessing this shared resource, its corresponding user is nobody.
Problem 4: the password of the domain account cannot be modified on some win2000 machines. The samba log prompts check_oem_password: incorrect password length (-312332314 ).
Solution: uninstall the win2k hotfix patch KB828741 or download the latest version of samba3.04.
Question 5: I used the release package samba. Now I want to download the latest source code for compilation and installation. How can I keep the original settings?
Solution: Stop the original samba service first:
| CODE:/etc/init. d/smb stop |