今天突然兴趣来了,想弄弄samba服务器。
1,先检查下,是否已经安装samba服务器
[root@bogon ~]# rpm -q samba
Package samba is not installed
[root@bogon ~]# yum -y install samba
2,重启服务
service smb start
3,检查配置
testparm
4,建一个系统用户,用户window登陆
[root@linux samba]# useradd samba (建一个名叫samba的用户)
[root@linux samba]# passwd samba (给samba用户添加密码)
Changing password for user samba.
New password: (密码要六位以上,不显示在屏幕上)
BAD PASSWORD: it does not contain enough DIFFERENT characters
Retype new password: (确认密码)
passwd: all authentication tokens updated succes