经常用,怕自己忘了
[share]
comment= my share
path =/software
public = no
writable = yes
security = user
admin users = oracle
valid users = root,oracle
directory mask = 0775
create mask = 0777
然后使用smbpasswd root ,给root用户设置密码
重启samba,
service smb restart
客户端
smbclient -L 192.168.1.1 -U root
看看有没有share目录
smbclient //192.168.1.1/share -U root
ls 列出文件
get 下载文件
put 上传文件
阅读(1890) | 评论(0) | 转发(0) |