Windows cannot access after CentOS system configuration Samba

Source: Internet
Author: User


1. If it is installed, there will be the following tips:

samba-3.0.28-0.el5.8
samba-common-3.0.28-0.el5.8
samba-client-3.0.28-0.el5.8
System-config-samba-1.2.39-1.el5
2. If not installed, you can install using the Yum Install Samba command
3. Configure Samba. Vi/etc/samba/smb.conf
a). Modify [Global] (Globals configuration parameters)
Workgroup =mshome
Server string = Samba Server
Security = User
Passdb backend = Tdbsam #这一行前面用 "#" comment out, that is, # Passdb backend = Tdbsam
B.).
[Share]
Comment=centos
Path =/home/soft # path path can be set to other, however, the directory exists,
browseable = yes
writable = yes
browseable = yes
Available = yes
Create mask = 0664
Directory mask = 0775
After you set it up, save the exit and restart the Samba service. # Service SMB Restart

4. Add Samba login user account and password
A.). smbpasswd-a RUSJ #添加rusj用户, and add a password, the addition of success will be prompted. The user must be present on the system
B.). SMBPASSWD-E RUSJ #查看用户rusj exists, that is, no success was added.
C.). Testparm #简单测试配置是否正确
5. home]# chmod 0755 Soft #修改soft文件权限

OK configure the Windows login test, my Linux network IP address configuration for 192.168.0.3

Enter the Samba user name and password:


Ok. Logging in, you can view the shared directory that you just configured and the home directory of the Linux user

Well, go into the share directory, view, but, however, hints
Strange, clearly configured smb.conf file is not wrong Ah, the Sam.con security =user modified for security =share
Add the lower gust to the following [share]
Guest OK =yes #允许匿名访问.
Save Exit/etc/samba/smb.conf, reboot Samba
The result is still not landing. Where is the problem, the online check, only to know why CentOS has a selinux module, which increases the CentOS security access control performance, and has an impact on some configurations, such as Samba and FTP. You can cancel the SELinux so that you can access Linux sharing through Windows.
Through Vi/etc/sysconfig/selinux
Change the selinux=enforcing to selinux= disable exit save and reboot. You can implement Windows for CentOS, SMB sharing, and, of course, you can configure the SELinux policy to implement this feature.

Related Article

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.