Linux service-detailed configuration of samba

Source: Internet
Author: User
Article Title: linux service-detailed configuration of samba. 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 functions are simple to achieve sharing between linux and windows. Using samba to build a file server is not only more powerful than windows, but also fast and secure access. With so many advantages, it seems that learning to build samba is a necessary task for network management. The samba server requires two Daemon Processes: smbd and nmbd. The smbd process listens to the 139TCP port and processes incoming SMB packets. The nmbd process listens to ports 137 and 138UDP so that other hosts can browse the linux server.

I. Install and start the samba server

· Install the samba Service

Run the rpm-qa | grep samba command to check whether the samba service has been installed in the system. If the first disc is not attached and the optical drive is attached. Finally, install the components required by samba. Samba requires the following three components samba_common_2.2.7a_7.9.0.i386.rpm, samba_2.2.7a-7.9.0.i386.rpm, samba_client _ 2.2.7a _ 7.9.0.i386.rpm.

Note: As linux uses minimal installation, a prompt is displayed when samba is installed.
Error: failed dependencies:
Samba-common = 2.2.7 is needed by samba-2.2.7-3.7.3
Libcups. so.2 is needed by samba-2.2.7-3.7.3
Later I know that the lack of a cups-libs-1.1.17-14 package, you can install the cups-libs-1.1.17-14 package and must have libjpeg. so.62, libpng12.so. 0. libtiff. so.3 support for these three packages, find these three packages on the first disc and install them successfully, and then install the cups-libs-1.1.17-14 package. Finally, samba is successfully installed. Minimizing system installation is unpleasant!

· Start the samba Service

After the installation is complete, run the service smb start command to start the samba service. To enable automatic loading of the samba service at startup, run the ntsysv command to enable the service automatically loaded at startup, check smb, and then load the samba service at startup.

· Disable Firewall

By default, the firewall disables the 139 TCP port and the 137 and 138 ports required by the nmbd process. Therefore, we use the Command service iptables stop to disable the firewall. You can also modify the firewall to allow the TCP139 UDP 137 and 138 ports.

[1] [2] [3] Next page

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.