2. 为这个用户添加samba权限
[root@localhost home]# smbpasswd -a wallace
New SMB password:rss123
Retype new SMB password: rss123
Added user jingui.
[root@localhost home]#
3. 为这个用户配置访问权限和目录.
更改配置文件/etc/samba/smb.conf
添加下面几行
[cpes_dir]
comment = CPE-WORK Service
path = /home/cpe202Work
valid users = wallace
public = no
writable = yes
printable = no
这样在客户端访问的时候看到的就是/home/cpeWork下面的东西, 重启一下服务
[root@localhost home]# service smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]