Summary of self-built samba-Linux Enterprise Application-Linux server application information. The following is a detailed description. In the past two days, a samba server was created to replace win2003 server as a file server. Some problems were found, as shown below:
1. The ugo permission management file is used in linux and can be applied to most environments. But it is not as flexible as windows. Although you can post on the mount parameters, you do not know the stability and instability, and samba itself does not support this situation, in addition, the creation of a file in linux is not related to the creation and modification of the last level of directory permissions. This is the case when samba is created this time. There are three persons a, B, and c. a and B are shared by their own directories, which can be viewed by all users without being modified by others. C, B, c, and a both share directories and require that the two of them be able to modify the directories of c and B. Only some of them can access the directories, while others cannot access the directories, the c and a directories are accessible to all users. This involves the main group of the C itself, because all the files and directories created by him, a and B will have a person who cannot modify them. In addition, the permission of the other persons in the c and B directories and their files must be 0. Later, we had to use smbusers to launch c and B as c, that is, to use B and c as one person, which caused B's own files to be modified by c.
2. When creating samba, selinux needs to be disabled and iptables must be enabled. smb uses ports 139 and 445, and nmb uses ports 137 and 138. This is not set yet, but it should not be added to/etc/bash. rc as described in iptable, because server startup may not necessarily enter the system locally.
3. To change the netbios name in smb. conf, restart the nmb service to resolve the issue.
4. modified the smb. conf configuration and does not require service smb restart. Because it will interrupt the service, the service smb reload should be used.
5. When config file is applicable to XXX, replace % U with lower-case characters after the file name. At first, I thought it was necessary to match passwd. The result is smb. conf. gogo11 does not work. It is normal to change the lower case.
6. If Windows 7 cannot log on to samba normally, you need to modify the Windows 7 registry. It does not exist in samba3.5 and can log on normally.
7. After testing, samba provides two methods to share hidden files. Usage 1: The shared directory is browseable = no. Usage 2: Use the ". directory" name in the shared directory to estimate the "file ~" This method also works, because it is hidden in both linux and windows.
----------------------------------------------------
Problem 1: security = user. No Parameters for using an unknown user are found to automatically use a specific account. During windows Access, the user name is prompted (as you may have previously remembered)
Problem 2: samba has not been tested as a time server, that is, the time is synchronized using net time \ netbios name/set/y on windows.
Problem 3: There is no case-sensitivity compatibility problem between linux and windows test usernames. Now we use the same
Question 4: I did not test the socket options = TCP_NODELAY SO_RCVBUF = 8192 SO_SNDBUF = 8192 effect. I don't know how big the impact will be. Because of the New Year, samba has been put into practical use and everything is stable.
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