Ubuntu 安装samba

sudo apt-get install samba

修改/etc/samba/smb.conf文件,在最后添加如下的配置:
[Disk2] # 这是共享名
comment = This is the comment
path = /disk2/
browseable = yes
guest ok = yes
read only = no
这样就可以配置一个匿名的共享了。
如果需要设置固定用户有些权限可以添加如下配置:
write list = kevin
用户的创建方法:sudo smbpasswd -a kevin

By Lu Jun

80后男,就职于软件行业。习于F*** GFW。人生48%时间陪同电子设备和互联网,美剧迷,高清视频狂热者,游戏菜鸟,长期谷粉,临时果粉,略知摄影。

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.