Windows and Linux file sharing

Source: Internet
Author: User

Windows and Linux file sharing

Samba Server

    1. Installing the Samba Server

rpm–ivh/mnt/packages/samba-3.5.10-125.el6.i686.rpm

    1. Add Users and modify passwords

Useradd win

passwd ******

    1. Set the password for the user to log on to the Samba Server

Smbpaaawd–a win

    1. Configure Samba Services

Vim/etc/samba/smb.conf

What to modify:

Copy Homes content

Rename add [root]

[Root]

Comment = Root directories

Path =/

Browseable =yes

Writeable =yes

Valid Users =win

After configuring the above steps, enter the following in your computer's browser:

\\192.168.1.102 according to the IP address of the Linux input, enter after the user name is just established win, password * , open the root directory, cannot open the win directory after entering because SELinux Not closed. So we also need to close selinux, command : Setenforce permissive

WinSCP Applications

    1. Premise, from Windows to ping linux
    2. Shutting down the Linux firewall

Run command:/etc/init.d/iptables stop

    1. Open the software WinSCP

Set up Select SFTP, enter IP, username, password

TFTP and NFS Server Configuration

TFTP Server

    1. Installing the TFTP Server

rpm–ivh/mnt/packages/tftp-server-0.49-7.el6.i686.rpm

    1. Configuring the tftp server

Vim/etc/xinetd.d/tftp

Set where the shared directory is

Server_arg =-s/home ( the directory where the files are downloaded )

Disable = no

    1. Restart the TFTP service

/etc/init.d/xinetd restart

    1. Test tftp service

Testing with tftpd32 software under Windows

    1. See if tftp is activated.

Command:netstat –a|grep tftp

Server for NFS

    1. Configure server for NFS

Vim/etc/exports

Add: The following line

/tmp * (rw, sync, No_root_squash)

/tmp: shared directory

*: Allow access to the shared directory host IP 192.168.1.* *: Indicates all IP

(Rw,sync,no_root_squash): access Rights

    1. Start server for NFS

/etc/init.d/nfs restart

Windows and Linux file sharing

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.