Samba Server Installation and configuration

Source: Internet
Author: User

I haven't done it in a long time before! It's not the firewall, but the selinux!.

1. First install Samba

# yum Install Samba samba-client Samba-swat

Packages with dependencies Samba-common,samba-winbind-clients,libsmbclient will be installed automatically.

2. Check the installation status

Rpm-qa | grep Samba

3. Start the Samba server

Samba Services can be started, shut down, and restarted via /ETC/INIT.D/SMB Start/stop/restart

4. View Samba service startup status

# Service SMB Status

5. Set Boot from boot

# chkconfig--level SMB on//at Level 3,5 to automatically run Samba services

6. Modify the configuration file (Shared Htdoc directory)

7. Restart SMB

# Service Samba Restart

8. Create a user (Apache user)

To add an Apache user to an SMB

Set a directory permission for Apache users

Set a directory default permission for Apache users

8, test

The error was reported at the time:

Session setup Failed:nt_status_logon_failure

I couldn't solve it for a long while, and then I found the reason

(1), shut down the firewall

# Service Iptables Stop

(2), close SELinux

Modify the /etc/sysconfig/selinux  to change the enforcing  to disabled; then the command line  Setenforce 0;
In Windows access
Get!

Samba Server Installation and configuration

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.