samba

安装Samba sudo apt-get install samba 打开samba配置文件 sudo vim /etc/samba/smb.conf 对我们创建的目录进行配置,添加以下配置
安装Samba

sudo apt-get install samba
打开samba配置文件

sudo vim /etc/samba/smb.conf
对我们创建的目录进行配置,添加以下配置

[work]
comment = samba home directory
path = /home/deepinout/
public = yes
browseable = yes
public = yes
writeable = yes
valid users = deepinout
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
available = yes
read only = no
设置samba登录密码

sudo smbpasswd -a deepinout //为用户deepinout设置samba密码
sudo /etc/init.d/smbd restart //重启samba服务
重启samba服务

sudo /etc/init.d/smbd restart

你可能感兴趣的:(samba)