Installation and configuration of CentOS tftp and Samba

Source: Internet
Author: User

The TFTP server is installed in the configuration

1 Installation: command: #yum –y install TFTP

2 after the installation is complete, set the TFTP server to boot, by: (command) #setup → Select the TFTP option in System server→.

3 Input command (#netstat-a | grep tftp check if TFTP has started)

4 configuration: Command: #gedit/etc/xinted.d/tftp

Main modification Disable = no

Server =-s/tftpboot

1 Service TFTP2 {3Socket_type =Dgram4protocol =UDP5wait =Yes6user =Root7Server =/usr/sbin/inch. TFTPD8Server_args =-S/var/lib/Tftpboot9Disable = no//The default is YesTenPer_source = One OneCPS = - 2 AFlags = IPV4

5 Restart Service command: #/etc/init.d/xinetd restart

6 Check again whether the command has been started: #netstat-A | grep tftp

Appears: UDP 0 0 *:tftp *:* can!!!

Installation of Samba servers

2 Installing Smaba Server: Command: #yum –y Install Samba

3 Configuring Samba

Usually we compile the smb.conf file, for security reasons, you should back up this configuration file

A backup: command: #cp/etc/samba/smb.conf/etc/samba/smb.conf.bak

b Compile the configuration file via the compiler vim or gedit. Command: #vim/etc/samba/smb.conf

C Add the following at the end of the file, and then save the exit:

1 [Share]2 3Comment = Share//Description Information4 5Path =/home/yan (user)/share//set the share path6 7PUBILC =Yes8 9writable = yes//whether it can be writtenTen  OneWrite list = Yan//List of users that can be written to

4 Create a shared file: (Note: The Samba user set up must be a legitimate user on Linux!!) )

Command: Create a shared directory #mkdir/home/yan/share

#chmod 777/home/yan/share Change Directory permissions

5 Adding Samba users

Command: #smbpasswd-a Yan

You will be prompted to enter the two-time SMB user password, which is the password for win login Liunx Samba

6 Restart Samba service.

Command: #/ETC/INIT.D/SMB restart

Finally, an example of a Samba service that accesses Linux in Windows is introduced

Step: Start → run → input (//liunx host IP address, such as://192.168.1.120) → Enter

Enter the samba username (for example: Yan), Password: * *, click to login.

Installation and configuration of CentOS tftp and Samba

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.