ubuntu-page-8
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| ubuntu-page-8 [2023/10/17 11:01] – created admin | ubuntu-page-8 [2024/09/22 03:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to Install Samba Server ====== | ====== How to Install Samba Server ====== | ||
| + | 1. Samba is included in most Linux distributions. To install Samba on Ubuntu, simply run the following command in terminal | ||
| + | < | ||
| + | 2. To check your Samba version, run | ||
| + | < | ||
| + | 3. To check if Samba service is running, issue the following command | ||
| + | < | ||
| + | 4. To start these two services, issue the following command | ||
| + | < | ||
| + | 5. If you have enabled the UFW firewall on Ubuntu, then you need to open the above ports in the firewall with the following command | ||
| + | < | ||
| + | 6. Create a private Samba share, issue the following command | ||
| + | < | ||
| + | 7. scroll down to the bottom of the file. (In nano text editor, you can achieve that by pressing CTRL+W then CTRL+V. ) Add a new section like below | ||
| + | < | ||
| + | [Private] | ||
| + | comment = needs username and password to access | ||
| + | path = / | ||
| + | browseable = yes | ||
| + | guest ok = no | ||
| + | writable = yes | ||
| + | valid users = @samba | ||
| + | </ | ||
| + | 8. Save and close the file | ||
| + | |||
| + | 9. Now we need to create a Samba user | ||
| + | < | ||
| + | 10. Samba password for the new user | ||
| + | < | ||
| + | 11. Create the samba group | ||
| + | < | ||
| + | 12. And add this user to the samba group | ||
| + | < | ||
| + | 13. Create the private share folder | ||
| + | < | ||
| + | 14. If your system doesn’t have the setfacl command, you need to install the acl package with | ||
| + | < | ||
| + | 15. The samba group needs to have read, write and execute permission on the shared folder | ||
| + | < | ||
| + | 16. Run the following command to check if there’s syntactic errors | ||
| + | < | ||
| + | 17. Now all left to do is to restart smbd and nmbd daemon | ||
| + | < | ||
| + | |||
| + | |||
| + | [[ubuntu-main-page|Ubuntu Main Page]] | ||
| [[https:// | [[https:// | ||
ubuntu-page-8.1697540516.txt.gz · Last modified: 2024/09/22 03:55 (external edit)