Windows and Linux file sharing
Samba Server
- Installing the Samba Server
rpm–ivh/mnt/packages/samba-3.5.10-125.el6.i686.rpm
- Add Users and modify passwords
Useradd win
passwd ******
- Set the password for the user to log on to the Samba Server
Smbpaaawd–a win
- 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
- Premise, from Windows to ping linux
- Shutting down the Linux firewall
Run command:/etc/init.d/iptables stop
- Open the software WinSCP
Set up Select SFTP, enter IP, username, password
TFTP and NFS Server Configuration
TFTP Server
- Installing the TFTP Server
rpm–ivh/mnt/packages/tftp-server-0.49-7.el6.i686.rpm
- 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
- Restart the TFTP service
/etc/init.d/xinetd restart
- Test tftp service
Testing with tftpd32 software under Windows
- See if tftp is activated.
Command:netstat –a|grep tftp
Server for NFS
- 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
- Start server for NFS
/etc/init.d/nfs restart
Windows and Linux file sharing