用户工具

站点工具


setup_samba_on_ubuntu

**这是本文档旧的修订版!**

Install Samba Server

sudo apt-get install samba

Create User and password

sudo useradd share # the user name is "share"
sudo smbpasswd -a share

Mount Aliyun OSS to the local folder

ossfs xxx data/ -ourl=oss-cn-xxx.aliyuncs.com  -o allow_other

Configure Share Folder

append below configuration to /etc/samba/smb.conf

[share]
available = yes
browseable = yes
path = /home/joybb/share
create mask = 0777
directory mask = 0777
valid users = share
force user = nobody
force group = nogroup
public = yes
writable = yes
available = yes

Start Samba Service

sudo /etc/init.d/smbd restart
setup_samba_on_ubuntu.1502174776.txt.gz · 最后更改: (外部编辑)