Ubuntu 16.04 samba configuration

Install samba:

samba:

sudo apt-get install samba

smbclient:

sudo apt-get install smbclient

2. modify the configuration file:

south you /etc/samba/smb.conf

In the end of the file, add the following [share] (equivalent to the home directory entry adds a new user)

[share]

comment = Share Folder require password

browseable = yes

path = /home/share

create mask = 0777

directory mask = 0777

valid users = share

force user = nobody

force group = nogroup

public = yes

writable = yes

available = yes

3 Save the restart samba exit:

     sudo /etc/init.d/samba restart

4 Switch to next / home / user directory create a directory:

    sudo mkdir share

5. Set directory permissions: (777 represents the highest authority, read-write executables)

    chmod 777 share

Published 25 original articles · won praise 4 · views 20000 +

Guess you like

Origin blog.csdn.net/zhou8400/article/details/105042540