Samba Share Config
From:
Step 5: Configure Samba Share Directory Settings
1. Access the configuration file once again to add the previously made sharing directory. Go to the end of the file and add:
[sharing]
comment = Samba share directory
path = /home/sharing
read only = no
writable = yes
browseable = yes
guest ok = no
valid users = @saraz @new_user
sharing settings in Vim
Each line grants specific permissions to access the directory. For instance:
Each line grants specific permissions to access the directory. For instance:
[sharing}. Represents the directory name. This is the directory location Windows users see.
comment. Serves as a shared directory description.
path. This parameter specifies the shared directory location. The example uses a directory in /home, but users can also place the shared files under /samba.
read only. This parameter allows users to modify the directory and add or change files when set to no.
writeable. Grants read and write access when set to yes.
browseable. This parameter allows other machines in the network to find the Samba server and Samba share when set to yes. Otherwise, users must know the exact Samba server name and type in the path to access the shared directory.
guest ok. When set to no, this parameter disables guest access. Users need to enter a username and password to access the shared directory.
valid users. Only the users mentioned have access to the Samba share.
2. Save the changes and exit the file.
3. testparm: