Monday, December 19, 2016

install samba ubuntu

1.sudo apt-get update
2.sudo apt-get install samba

3.edit smb.conf on /etc/samba

[kodi]
comment = kodi Files
path = /movie/Movie/kodi
guest ok = yes
browsable = yes
read only = no
hosts allow = 192.168.2.4

[Movie]
comment = Movie Files
path = /movie/Movie
guest ok = yes
browsable = no
read only = yes

check
root@ubuntu:~# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Shares]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

restart
4.service smbd restart

5.test open address bar
\\192.168.3.2



No comments: