samba搭建

在局域网下 samba可以代替ftp 用于传输

可以更高效的并行开发

安装samba

sudo apt-get install samba samba-common

创建要共享的文件夹

mkdir /home/share

设置文件夹权限,让登录者可以读写

chmod 777 /home/share -r

修改  /etc/samba/smb.conf配置文件

sudo vi /etc/samba/smb.conf

 在最下方添加

[文件名称]

  文件路径

  path=/home/share  

  可用

  available=yes

  可读

  browseable=yes

  可写

  writeable=yes

// 不需要密码

// public =yes 

结束配置

创建samba账户

  创建记录账号密码的文件

  touch /etc/samba/smbpasswd

  smbpasswd -a 账号名称

 会要求输入两次密码,就成功创建用户了

 etc/init.d/smbd restart

samba就搭建成功

There are two ways of constructing a software design.One is to make it so simple that there are obviously no deficiencies;the other is to make it so complicated that there are no obvious deficiencies.
原文地址:https://www.cnblogs.com/yuanjunqq/p/6212668.html