Windows and Linux File Sharing, linux File Sharing
File Sharing between Windows and Linux
Samba Server
Rpm-ivh/mnt/Packages/Samba-3.5.10-125.el6.i686.rpm
Useradd win
Passwd ******
Smbpaaawd-a win
Vim/etc/samba/smb. conf
Modification content:
Copy homes content
RENAME [root]
[Root]
Comment = Root Directories
Path =/
Browseable = yes
Writeable = yes
Valid users = win
After configuring the preceding steps, enter the following in the browser:
\ 192.168.1.102 is input based on the linux IP address. after entering the username, enter the created win and password ***** to open the root directory, the win directory cannot be opened because selinux is not closed. Therefore, we need to disable selinux with the command: setenforce permissive.
WinSCP Application
Run the command:/etc/init. d/iptables stop
Set SFTP, enter IP address, user name, and password
TFTP and NFS server configuration
TFTP Server
Rpm-ivh/mnt/Packages/tftp-server-0.49-7.el6.i686.rpm
Vim/etc/xinetd. d/tftp
Set where the shared directory is located
Server_arg =-S/home (directory where the downloaded file is stored)
Disable = no
/Etc/init. d/xinetd restart
Test with tftpd32 in Windows
Command: netstat-a | grep tftp
NFS server
Vim/etc/exports
Add: the following line
/Tmp * (rw, sync, no_root_squash)
/Tmp: shared directory
*: The Host IP address 192.168.1. ** that allows access to the shared directory indicates all IP addresses.
(Rw, sync, no_root_squash): access permission
/Etc/init. d/nfs restart