只让指定用户访问一个samba共享
时间:2006-08-09 来源:tx-cary
先建立一个用户
useradd name -s /sbin/nologin
将该用户添加到samba用户并且设置密码
smbpasswd -a name
然后修改/etc/smb.conf文件,加入你的共享目录设置
[sharename]
comment = Insert a comment here
path = /home/share/
valid users = name name1
public = no
writable = yes
printable = no
create mask = 0765
comment = Insert a comment here
path = /home/share/
valid users = name name1
public = no
writable = yes
printable = no
create mask = 0765
相关阅读 更多 +