e14.9Р 可知系统已经安装了Р2、建立目录Р/]# nkdir –p / sanba/scoreР3、添加用户Р #useradd user1Р#useradd user2 Р4、个人觉得这道得用独立配置文件,所以接下来建立user1和user2的配置文件Р/]# cp /etc/sanba/snb.conf /ect/sanba/user1.sanba.confР/]# cp /etc/sanba/snb.conf /ect/sanba/user2.sanba.confР5、设置主配置文件Р # vi /etc/samba/smb.confР 主要如下:Р在[global]里Рworkgroup = workgroupРsecurity = userРhosts allow = 192.168.4.0 本机ip地址Р include = /etc/samba/%U.smb.conf Р6、设置user1的配置文件Р #vi /etc/samba/user1.smb.conf Р主要如下:Р在[global]里Рworkgroup = workgroupРsecurity = userРhosts allow = 192.168.4.100 Р在后面共享定义中:Р [score]Р Conment = scoreР Path = /sanba/scoreР Valid users =userР Creat mode =0747Р Directory mode =0757Р保存退出Р7、设置user2的配置文件Р [global]的配置与主配置一样即Р[score]Р Conment = scoreР Path = /sanba/scoreР Read only=yes Р8、启动samba服务Р #service smb startР 记得本机的网卡要先配ip地址跟激活