SAMBA
# rpm -qa |grep samba
samba-client-3.0.33-3.28.el5
samba-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.conf
74 workgroup = WORKGROUP
75 server string = teacher-samba
101 security = share
289 [share]
290 comment = share
291 path = /samba
292 browseable = yes
293 public = yes
294 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 mike
New 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 tom
smb: \> help
# mount -t cifs //192.168.3.27/share /mnt/samba -o username=tom
Password:
# cd /mnt/samba
# ls
# touch abc //在共享目录里创建了abc