原文地址:https://www.cnblogs.com/xuchuan/p/13029973.html

安装:

sudo apt-get install samba

配置文件:

$ vim /etc/samba/smb.conf

[yourname]
   comment = share Dir
   path = /home/yourname
   browseable = yes
   public = yes
   read only = yes
   guest ok = no
   writable = yes

添加用户:

sudo smbpasswd -a yourname

重启samba:

sudo /etc/init.d/smbd restart

访问方式:

\\192.168.0.122\yourname
posted on 2020-07-16 18:12  步孤天  阅读(10)  评论(0)    收藏  举报