Build a samba server in wdOS

Source: Internet
Author: User
Tags ftp client
Set up samba server 1 in wdOS. introduction: Samba (SMB stands for ServerMessageBlock) is a network server used to share files between Linux and Windows. samba can be used to share files between Windows and Linux. it is also used between Linux and Linux...
Set up samba server 1 in wdOS. introduction: Samba (SMB stands for Server Message Block) is a network Server used for sharing files between Linux and Windows. samba can be used to share files between Windows and Linux. it is also used to share files between Linux and Linux. However, it provides a better network file system NFS for file sharing between Linux and Linux, NFS also requires server setup. we all know that each machine in the Windows network can be a file sharing server. samba works the same way. for example, if a Linux machine is installed with the Samba Server, it can act as a shared Server and can also be used as a client to access Windows shared file systems in other networks, or other Linux Sabmba servers. in Windows network, we can see the shared file function, we can directly use the shared folder as a local hard disk. in Linux The machines in the network provide a shared file system. you can also mount the shared files of other machines in the network to a local machine. in a sense, this is different from FTP. Samba uses the NETBIOS protocol. www.2cto.com Samba is mainly used by files or devices shared between Windows and Linux systems. it is a software package for sharing files and printing services between computers on the network. the protocol is the client service protocol, the smbclient command provided by Samba client, similar to the FTP client program, is generally used in the internal network. SWAT is one of the tools for managing Samba through a browser. Through SWAT, clients that are allowed to access Samba can use browsers to control Samba on the server. Reading online documents, smb. conf validation and editing, as well as password change, service restart, and so on can all be done through SWAT, which intuitively makes Samba warm, it is a powerful tool for those who do not like text interface management servers. This article attempts to build a Samba server in wdOS and manage it using the swat tool. The following is the specific setup process: 2. setup process: 1. run the command yum install samba to install the samba server online: 2. configure the main configuration file/etc/samba/smb for samba. conf: Find [global] and add the following content: Fill in the following lines at the end of the configuration file to define the public shared directory: www.2cto.com
3. create a directory that will be shared to Windows through Samba to create system users and add them to the samba database;
4. set the samba service to start automatically and restart the samba service: 5. install the SWAT tool: 6. modify the main configuration file/etc/xinetd of SWAT. d/swat: 7. restart the swat tool. because SWAT is started through a super server, you only need to restart xinetd to start SWAT 3. test results: (the test methods are described as follows: the swat tool is used and the swat tool is not used.) 1. test without the swat tool: Unlike xp, win 7's working group is the network icon www.2cto.com we saw on the Windows 7 desktop. then we can see the computer of the same working group and find your samba server: click on the samba server to display the window to be verified: If you log on successfully, you will see the following interface: you can try to create a file under the publicdirectory for verification, and create a wdos.txtand tea.doc here. I tried to write some content in the notepad, save it and exit the samba server to view/home/public, verify whether a notepad and a Word document were created, and view the content in the notepad: 2. test with the swat tool: we can use the http: // the server's intranet IP address: 901 is used to access the server's SWAT. here I use http: // 192.168.1.22: 901 as an example: www.2cto.com to successfully log on to the server and you will see the following interface: click global to view the content we set in the main configuration file of samba:
4. possible solution: 1.vi/etc/selinux/config SELLINUX = disable 2. disable firewall: service iptables restart author shen _ Ding
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.