1. Turn off the firewall
/etc/init.d/iptables stop
2.
C:\users\cfm>ping 192.168.232.131
Pinging 192.168.232.131 with 32 bytes of data:
Reply from 192.168.232.131: Byte =32 time <1ms ttl=64
Reply from 192.168.232.131: Byte =32 time =1ms ttl=64
Reply from 192.168.232.131: Byte =32 time <1ms ttl=64
Reply from 192.168.232.131: Byte =32 time <1ms ttl=64
Ping Statistics for 192.168.232.131:
Packet: Sent = 4, received = 4, lost = 0 (0% missing),
Estimated time to round trip (in milliseconds):
Shortest = 0ms, longest = 1ms, average = 0ms
3.1 WINSCP Access
3.2
[Email protected] ~]# mount/dev/cdrom/mnt
Mount:block Device/dev/sr0 is write-protected, mounting read-only
You have new mail in/var/spool/mail/root
[Email protected] ~]# cd/mnt/packages/
[Email protected] packages]# RMP-IVH samba-
samba-3.5.10-125.el6.i686.rpm
samba-client-3.5.10-125.el6.i686.rpm
samba-common-3.5.10-125.el6.i686.rpm
samba-winbind-3.5.10-125.el6.i686.rpm
samba-winbind-clients-3.5.10-125.el6.i686.rpm
[Email protected] packages]# RMP-IVH samba-3.5.10-125.el6.i686.rpm
-bash:rmp:command not found
[Email protected] packages]# RPM-IVH samba-3.5.10-125.el6.i686.rpm
Warning:samba-3.5.10-125.el6.i686.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:nokey
Preparing ... ########################################### [100%]
Package samba-0:3.5.10-125.el6.i686 is already installed
[Email protected] packages]# useradd work
[Email protected] packages]# passwd work
Change the password for the user work.
New Password: 123456
Invalid password: too simplistic/systematized
Invalid Password: too simple
Re-enter the new password: 123456
PASSWD: All the authentication tokens have been successfully updated.
[Email protected] packages]# smbpasswd-a work
New SMB password:123456
Retype new SMB password:12345
Added user work.
[Email protected] packages]# vim/etc/samba/smb.conf
Add to
[Root]
Comment = Home directories
Path =/
browseable = yes
writable = yes
Valid users = Work
[Email protected] packages]#/ETC/INIT.D/SMB restart
Turn off the SMB service: [Failed]
Start the SMB service: [OK]
Unable to access work directory close Selinuxlinux security module
[Email protected] packages]# Setenforce p
Usage:setenforce [Enforcing | Permissive | 1 | 0]
[Email protected] packages]# Setenforce permissive
[Email protected] packages]# vim/etc/samba/smb.conf
[Email protected] packages]# vim/etc/samba/smb.conf
[Email protected] packages]#/ETC/INIT.D/SMB restart
Turn off the SMB service: [OK]
Start the SMB service: [OK]
If the method accesses
Restart Samba server
/ETC/INIT.D/SMB Reatart
Windows and Linux file sharing