Archive

Archive for July, 2015

owncloud及samba

July 17th, 2015 No comments

安装samba

sudo apt-get install samba
sudo apt-get install samba-common-bin

必须安装common-bin才能利用smbpasswd进行samba用户管理
添加用户必须属于linux用户

sudo smbpasswd -a user

修改/etc/samba/smb.conf文件,最后添加以下代码

[share]
path = /home/share
browseable = yes
writable = yes
valid usrs = user
create mask = 644
directory mask = 770

onwcloud安装完后如需修改数据文件夹,可以删除owncloud安装目录下config/config.php文件,重置账号和数据