![]() ![]() In order to access the Samba share, you will need to install the Samba client on the Linux system. Next, restart the Samba service to apply the changes: systemctl restart smbd nmbd Step 5 – Access Samba Share from Linux Next, set proper permissions on the public directory: setfacl -R -m "u:nobody:rwx" /data/public Save and close the file, then create a public directory: mkdir -p /data/public/ To create a public share, edit the Samba main configuration file: nano /etc/samba/smb.confĪdd the following lines at the end of the file: In this section, we will show you how to create a public share with Samba so everyone can access the public share without providing a username and password. Next, restart the Samba service to apply the changes: systemctl restart smbd nmbd Step 4 – Create a Public Share with Samba Next, check the Samba configuration file for any errors with the following command: testparm Next, provide read and write permissions to the Samba share: setfacl -R -m "g:samba:rwx" /data/private Next, create a shared folder that you have specified in the smb.conf file: mkdir -p /data/private Next, add user1 to the samba group: gpasswd -a user1 samba Next, create a Samba group with the following command: groupadd samba ![]() You should see the following output: New SMB password: Next, set a Samba password with the following command: smbpasswd -a user1 Įnter the new value, or press ENTER for the default Īdding new user `user1' (1000) with group `user1'. You should see the following output: Adding user `user1'. Valid users = and close the file, then create a new user with the following command: adduser user1 Next, add the following lines at the end of the file: ![]() To do so, edit the Samba main configuration file: nano /etc/samba/smb.conf In this section, we will show you how to create a private share using Samba so that only authenticated users can access the share. Step 3 – Create a Private Share with Samba You can check the installed version of Samba with the following command: smbd -version Once installed, start the Samba services and enable them to start at system reboot: systemctl start smbd nmbd You can install it using the following command: apt-get install samba samba-common-bin acl -y apt-get update -y Step 2 – Install Samba Serverīy default, the Samba package is included in the Ubuntu 20.04 repository. Once you are logged in to your Ubuntu 20.04 server, run the following command to update your base system with the latest available packages. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page. Create a new server, choosing Ubuntu 20.04 as the operating system with at least 2GB RAM. Step 1 – Create Atlantic.Net Cloud Serverįirst, log in to your Atlantic.Net Cloud Server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |