install and configure samba on ubuntu

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

上一篇:pwn 环境搭建(wsl/vmware)


下一篇:Linux-基础命令学习