Samba graphical configuration tool-SWAT

Source: Internet
Author: User
Article title: Samba graphical configuration tool-SWAT. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Samba is a complete set of UNIX programs (including Linux). it can understand SMB, that is, Server Message Block protocol.
  
Both Windows and OS/2 use the SMB protocol to communicate with each other on different computers. By installing samba on UNIX, UNIX can communicate with Windows computers and simulate UNIX machines as Windows machines. In this way, the Linux machine installed with samba can simulate the Window NT function. It also provides almost all Windows NT functions. by default, the Samba software package is installed in blue-point Linux.
  
After Blue-point Linux is installed, users can use Samba to provide Windows network sharing, which is achieved through the Samba configuration file/etc/smb. conf. Users can directly modify smb. conf, but it is not easy to use because it is a character interface. Samba provides the graphical configuration tool SWAT from 2.0. SWAT is a graphical tool for configuring and managing Samba. it is started through the inetd Super application daemon. Through SWAT, users can configure and modify Samba configuration files, and monitor the running of servers. Although Samba is installed in blue-point Linux, SWAT is disabled by default. You can open it by following these steps:
  
Find a line in the/etc/inited. conf file.
# Swat stream tcp nowait.400 root/usr/local/samba/bin/swat
  
Remove the # above it and run the following command:
# Ps? Aux | grep inetd
Root 398 0.0 0.1 1200 68? S inetd
  
This finds the ID of the inetd process, and then forces inetd to re-read its configuration file using the following command:
# Kill? HUP 398
  
After completing these tasks, enter the URL: http: // localhost: 901 or http: // 1.2.3.4: 901 in the browser. replace 1.2.3.4 with your own IP address or host name. Enter the root and root passwords in the displayed logon window to use SWAT.
  
  
After logging on, we can use SWAT to create the Samba configuration file/etc/smb. conf. First, you need to set the working group of the Samba server. Click "GLOBALS" under the graphic interface to display the dialog box.
  
Next we want to set up a shared disk. under the graphic interface that appears, click the "SHARES" icon to display the dialog box. Enter the name of the shared disk in Create Share, and then press "Create Share.
  
Enter the remarks for the shared resource in the comment. Enter the path of the shared resource on Linux in path. After entering the information, click Commit Changes. After all this is done, the user should see the newly set shared resource in the network neighbor.
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.