...
Wiki Markup |
---|
In the \[ global \] section we have to put the name of our workgroup or domain and uncomment the security parameter: |
Code Block |
---|
workgroup = EXAMPLEHOME . . . security = user |
...
Now we can create a new section or uncomment one for the directory to be shared:
Code Block |
---|
[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
|
The main parameters of each section are:
- comment: a short description
- path: the path to the directory to share.
- browsable: enables Windows clients to browse the shared directory using Windows Explorer.
- guest ok: allows clients to connect to the share without supplying a password.
- read only: determines if the share is read only or if write privileges are granted.
- create mask: determines the permissions new files will have when created.
After these changes in smb.conf we have to restart the samba services to enable the new configuration:
Panel |
---|
sudo /etc/init.d/samba restart |