Install Samba Protocal to Ubuntu Server to Share Files With Windows Clients

  1. Enter terminal.
  2. Input “sudo apt-get install samba”, then press Enter.
  3. 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.
  4. In terminal, input “sudo gedit /etc/samba/smb.conf”, then press Enter.
  5. In the editor, find “security = user”, then change it to “security = share”, and delete the “#” in the beginning of this line.
  6. 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
  7. Back to terminal, press “sudo /etc/init.d/samba restart”, press Enter to restart SMB service.
  8. 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)

Share This:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.