- Enter terminal.
- Input “sudo apt-get install samba”, then press Enter.
- Now you can use “\\ip” to access the Ubuntu server in a windows client, but the username and password you input won’t be authenticated, you need to edit the SMB’s configuration file.
- In terminal, input “sudo gedit /etc/samba/smb.conf”, then press Enter.
- In the editor, find “security = user”, then change it to “security = share”, and delete the “#” in the beginning of this line.
- Then we try to create a share folder named “website”, add the following contents to “smb.conf”, then press Ctrl + S to save, Alt + F4 to quit editor.
[website] //share name
comment = All tester
browseable = no
public = yes
path = /etc/www/html //actual path
guest ok = yes
read only = no - Back to terminal, press “sudo /etc/init.d/samba restart”, press Enter to restart SMB service.
- Ok, all done, you can use “\\ip\website” to access the share folder in any windows client.
Notice: All articles are original by ComputerBlog.com.au, please make sure the original URL will be kept in reproduction.
Post Footer automatically generated by wp-posturl plugin for wordpress.
(17)