SAMBA
# rpm -qa |grep samba
samba-client-3.0.33-3.28.el5samba-common-3.0.33-3.28.el5# mount /dev/hdc /mnt/cdrom# yum install samba -y
# service smb restart
# chkconfig smb on # cd /etc/samba/# cp -p smb.conf smb.conf.bak# vim smb.conf74 workgroup = WORKGROUP
75 server string = teacher-samba101 security = share289 [share]
290 comment = share291 path = /samba292 browseable = yes293 public = yes294 writable = yes# mkdir /samba
[root@teacher samba]# chmod 777 /samba[root@teacher samba]# service smb restart在windows网上邻居看到共享
----------------------------------# cd /etc/samba# vim smb.conf
101 security = user
# smbpasswd -a tom
New SMB password:Retype new SMB password:Added user tom.[root@teacher samba]# smbpasswd -a mikeNew SMB password:Retype new SMB password:Added user mike.# service smb restart 服务重启
在windows 网上邻居查看
---------------------# smbclient -L 192.168.3.2 -U tom
# smbclient //192.168.3.2/share -U tomsmb: \> help# mount -t cifs //192.168.3.27/share /mnt/samba -o username=tom
Password:# cd /mnt/samba
# ls# touch abc //在共享目录里创建了abc