Prerequisites
- A computer running Linux, macOS, or Windows
- The Samba software installed
Instructions
sudo apt install samba
(For macOS, use the following command: brew install samba)
(For Windows, download and install the Samba software from the Samba website: https://www.samba.org/)
- For Linux, the file is located at /etc/samba/smb.conf.
- For macOS, the file is located at /usr/local/etc/samba/smb.conf.
- For Windows, the file is located at %windir%\system32\drivers\etc\samba\smb.conf.
path = /path/to/shared/directory
valid users = @Everyone
The path parameter specifies the path to the shared directory. The valid users parameter specifies that anyone on the network can access the shared files.
sudo service smb restart(For macOS, use the following command: brew services restart samba)(For Windows, restart the Samba service from the Services control panel.)
- You can also create a Samba share with restricted access. To do this, you would need to specify a list of users who are allowed to access the shared files.
- You can also set permissions on the shared files to control who can read, write, and execute the files.
- For more information on creating and configuring Samba shares, please refer to the Samba documentation: https://www.samba.org/samba/docs/.