首页 > 系统服务 > 详细

install and configure samba on ubuntu

时间:2020-12-29 00:02:09      阅读:32      评论:0      收藏:0      [点我收藏+]

install and configure samba on ubuntu

 

1.
install samba
$ sudo apt-get install samba smbfs smbclient

2.
configure samba
$ sudo vim /etc/samba/smb.conf

example,add at the end of the smb.conf:

[share]
path = /home/wyk/share
available = yes
browseable = yes
valid users = wyk
writeable = yes

3.create samba user
$ sudo smbpasswd -a USERNAME

example:
$ sudo smbpasswd -a wyk

4.
restart samba:
$ sudo /etc/init.d/smbd reload
$ sudo /etc/init.d/smbd restart
or reboot machine

5.
example:
You can access ubuntu files through this path \\192.168.0.12\wyk\share on windows

 

install and configure samba on ubuntu

原文:https://www.cnblogs.com/WangYangkai/p/14203921.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!