Two samba problems of Fedora9 and Solutions

Source: Internet
Author: User
Recently, I installed a Fedora9 in my ThinkPadT61 notebook. Because the notebook is used for office work, I usually need to share files with other machines. Therefore, after setting yuminstallsamba, I thought it would be okay, the results were not the same. Two problems occurred, and I had to wait for a day until I got started half an hour ago. Now it is easy to record and prepare for future reference, and it is also convenient for everyone. Problem 1: When other machines access the shared directory of Fedora9, users are always required to enter

Recently I installed a Fedora 9 in my ThinkPad T61, because the notebook is used for office work and files need to be shared with other machines at ordinary times. Therefore, after setting yum install samba, I thought it was okay, but the result was not the case. There were two problems. I had to wait for a day until I got started half an hour ago. Now it is easy to record and prepare for future reference, and it is also convenient for everyone.

Problem 1: When other machines access the shared directory of Fedora 9, the user name and password are always required, even the shared directory defined by [public! The [public] configuration is correct. guest OK = yes, public = yes, but this is not the case with my long-term use of the Mandriva system.

Solution: To solve this problem, modify smb. in the [global] section, add map to guest = bad user. This configuration maps all users that cannot be correctly identified by samba system hosts to guest users, in this way, other hosts no longer need the user name and password to access the public directory of Fedora 9.

Analysis: In the Fedora 9 system, the default configuration of map to guest is not bad user. Therefore, once the user accessing Fedora 9 in the client is not the user specified by map to guest, samba regards it as a common user rather than guest, and requires the user to enter the user name and password. Assume that the user name accessed by the client is guest and the password is blank, while the map to guest of samba is set to guest, the client does not need to enter the user name and password. Map to guest = bad user is a wise choice to adapt to different guest accounts in all clients.

Problem 2: When Fedora 9 accesses any other machine, it can see the shared directory and its files and subdirectories, but cannot perform write operations, once written, the system reports that the process serving the smb protocol unexpectedly exits. You cannot perform write operations in the XP shared directory. This error is also reported when you open some folders! This problem is puzzling. It is true only when I use Smb4k at home to access the shared directory of the remote host at night:

Mount error 1 = Operation not permitted

Solution: open a console and run the following command:

Su-c 'chmod u + s/sbin/mount. cifs'
Su-c 'chmod u + s/sbin/umount. cifs'

Or su-to the root user, and then execute chmod.

Analysis: the cause of this error is that the samba client has no permission to mount the shared directory of the remote host, while I usually use a Linux system to log on with a common user instead of a root user. By default, a common user does not have the mount permission. Therefore, the remote shared directory cannot be mounted, the write operation is normal.

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.