1. 关闭防火墙
/etc/init.d/iptables stop
2.
C:\Users\cfm>ping 192.168.232.131
正在 Ping 192.168.232.131 具有 32 字节的数据:
来自 192.168.232.131 的回复: 字节=32 时间<1ms TTL=64
来自 192.168.232.131 的回复: 字节=32 时间=1ms TTL=64
来自 192.168.232.131 的回复: 字节=32 时间<1ms TTL=64
来自 192.168.232.131 的回复: 字节=32 时间<1ms TTL=64
192.168.232.131 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 0ms,最长 = 1ms,平均 = 0ms
3.1 winscp访问
3.2
[root@cfm880 ~]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
You have new mail in /var/spool/mail/root
[root@cfm880 ~]# cd /mnt/Packages/
[root@cfm880 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
[root@cfm880 Packages]# rmp -ivh samba-3.5.10-125.el6.i686.rpm
-bash: rmp: command not found
[root@cfm880 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
[root@cfm880 Packages]# useradd work
[root@cfm880 Packages]# passwd work
更改用户 work 的密码 。
新的 密码:123456
无效的密码: 过于简单化/系统化
无效的密码: 过于简单
重新输入新的 密码:123456
passwd: 所有的身份验证令牌已经成功更新。
[root@cfm880 Packages]# smbpasswd -a work
New SMB password:123456
Retype new SMB password:12345
Added user work.
[root@cfm880 Packages]# vim /etc/samba/smb.conf
添加
[root]
comment = Home Directories
path = /
browseable = yes
writable = yes
valid users = work
[root@cfm880 Packages]# /etc/init.d/smb restart
关闭 SMB 服务: [失败]
启动 SMB 服务: [确定]
无法访问work目录关闭selinuxlinux安全模块
[root@cfm880 Packages]# setenforce p
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
[root@cfm880 Packages]# setenforce permissive
[root@cfm880 Packages]# vim /etc/samba/smb.conf
[root@cfm880 Packages]# vim /etc/samba/smb.conf
[root@cfm880 Packages]# /etc/init.d/smb restart
关闭 SMB 服务: [确定]
启动 SMB 服务: [确定]
如果无法访问
关闭防火墙
[root@cfm880 ~]# /etc/init.d/iptables stop
[root@cfm880 ~]# setenforce permissive
重启samba服务器
/etc/init.d/smb reatart