How to solve samba configuration problems in Linux
Source: Internet
Author: User
Linux: How to Solve samba configuration problems-Linux Enterprise Application-Linux server application information. I have been studying samba configuration for the past two days. The problem may be ridiculous because it is a cainiao. Here I will write some solutions to the problem, after samba is installed today, all files required by rpm-qa | grep samba are available, so configure smb under/etc/samba. conf file. added the following information at the last position:
[My]
Path =/home/my
Read only = no
Public = yes
Browseable = yes
Because only a simple shared directory is created, save and exit without considering the security and permissions issues. testparm is normal, and then restart samba. one user is created and added to the smb User with the smbpasswd-a user name.
Switch to the directory shared by the created user on the windowns machine and no access permission is found.
Solution: vi/etc/sysconfig/selinux File
# This file controls the state of SELinux on the system.
# SELINUX = can take one of these three values:
# Enforcing-SELinux security policy is enforced.
# Permissive-SELinux prints warnings instead of enforcing.
# Disabled-SELinux is fully disabled.
SELINUX = enforcing
# SELINUX = disabled
# SELINUXTYPE = type of policy in use. Possible values are:
# Targeted-Only targeted network daemons are protected.
# Strict-Full SELinux protection.
SELINUXTYPE = targeted
SELINUX = enforcing,
Changed to SELINUX = disabled.
After the system is restarted, selinux will be stopped.
Switch to windows again and try again to access the/home/my directory.
Selinux is a policy manager on a server. I have never studied what to do with it. SELinux users use the release version ready for SELinux, for example, Fedora, Red Hat Enterprise Linux (RHEL), Debian, or Gentoo. They enable SELinux in the kernel and provide a customizable security policy. They also provide many user-layer libraries and tools that can use the SELinux function.
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