Fedora Learning Series 4-install Samba graphics Configuration tool SWAT

Source: Internet
Author: User

In other versions
Linux

Medium (
As5, as4

,
Centos

).
Fedora9

But we can only see sharing, but access will be denied, why?
Because
SELinux

Pair
Samba

Sharing is restricted. We only use
SELinux

Moderate
Samba

To solve the limitations, we will do the following settings
OK

This is also the purpose of my tutorial:


# Setsebool-P samba_enable_home_dir on

# Setsebool-P samba_export_all_ro on

# Setsebool-P samba_export_all_rw on





Run getsebool-A | grep Samba.


Check whether the preceding three items are enabled. If yes, your sharing will be normal.

Http://www.cnblogs.com/suyang/archive/2009/01/24/1380717.html

 

 

1. Enter

Su-C 'service SMB start'

Su-C 'service nmb start'

Su-C 'service iptables restart'

Su-C 'service xinetd restart'

Enable Service

 

 

2. Software Installation

Yum install samba *-y

 

3. You can use the root account or administrator account for sharing.

Smbpasswd-a root

Smbpasswd-A lislee

Note that the samba shared account name is set to the same as the administrator account.

The password needs to be reset. The account secret is different from the samba password.



4. remember to turn off the firewall,

Iptables-F

I cannot access SWAT using Nat here, but it is okay to use the bgride method. I don't know why ....

 

If you do not like the command line configuration samba, a web page configuration tool SWAT is provided.

It is not installed by default and needs to be installed manually.

1. Install SWAT

Yum-y install samba-SWAT

Install the xinetd service component when installing SWAT.

2 configure SWAT

Configuration File Path:/etc/xinetd. d/Swat

Modify the two items.

Change a disable = yes to disable = No

B. Add the access CIDR block only from = 192.168.1.0

3. Check whether port 901 is enabled in the firewall.

3.1 check the port used by SWAT

Netstat-NLP | grep xinetd (root permission)

3, 2 check the firewall configuration file

/Etc/sysconfig/iptables (I turned it off directly and I don't know how to configure it)

4. Save the configuration file and restart the service.

Service iptables restart

Service xinetd restart

5 L the local machine accesses the samba configuration file through the webpage

 

 

6. Access the configuration file in Windows

In the configuration file, only from = 192.168.1.0

You can access swat from other computers in the 192.168.1 network segment.

 

 

This article is also detailed

Http://tom110.blog.51cto.com/892790/190552























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.