![]() To test if Samba is working correctly, you can try accessing the shared folder from another device on your network. You can verify whether the service is running by executing the command below. To do this, run the following command: sudo systemctl restart smbd If you want to restrict access to the share, you can set guest ok to no, and users will need to provide a valid username and password to access the share.Īfter making changes to the Samba configuration file, you’ll need to restart the Samba service for the changes to take effect. Setting guest ok to yes means users can access the share without providing a username and password. guest ok = yes: This line specifies whether users must provide a username and password to access the share. ![]() If you want users to be able to read files but not make changes, you can set read-only to yes. Setting read-only to no means that users can write to the share. read only = no: This line specifies whether users can write to the share.You can set writable to no if you want to restrict users to read-only access. Setting writable to yes means that users can change files in the share. writable = yes: This line specifies whether users can change files in the share.You can specify multiple users by separating them with a comma, like this: In this case, only the user, johndoe, can access the share. valid users = johndoe: This line specifies the list of users allowed to access the share.You can change this path to the directory you want to share. In this case, it’s the directory at /root/SAMBA_SHARE/. path = /root/SAMBA_SHARE/: This line specifies the path to the directory you want to share.The name can be anything you want, but it should be a unique name that isn’t already being used by another share. : This line creates a new Samba share named “SAMBA_SHARE”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |