How Samba works as a file server in Linux

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.