![]() ![]() Thanks to Samba it will be possible to share files in a compatible and straightforward way between Windows and Linux.Install Home NAS Server (Samba Server) On Debian With Attune Automation This Blueprint Installs Samba Server On A Debian Based Linux System. When trying to locate any of the available folders, we must enter the credentials of the authorized user that we have created, in this example solvetic1:Ĭlick on Ok and we will have access, and we can create or edit objects there: When pressing Enter or Accept we have accessed the folders that we have created in Samba: In this case, we are running Windows 10 and to acess the Samba server we will use the following key combination and enter the server IP: Win R Now we will add this user to the Samba database by executing the following: smbpasswd -a solvetic1 Access Samba From Windows We can add the desired users. We will modify the password using the passwd solvetic1 line. The next step is to add the users we want for the connection through Samba, for this we will create the user solvetic1 executing the following: useradd solvetic1 -m -G users Restart Samba to apply the changes: systemctl restart rvice Manage SAMBA Users on Debian 9 ![]() Save the changes using the keys Ctrl O, and we left the editor using Ctrl X. Here we allow all users to write and this option is open to anyone in the network so it should be managed only in local networks, we will add the following: There we allow users to read and write in their directories through Samba we will add the following lines: This indicates a shared resource which is accessible and writable for all members of our “user” group. We will add the following: There we will add the following lines at the end of the file: Now we will access the Samba configuration file by running the next line: nano /etc/samba/smb.conf Now we will create the directory to share the files between both systems, and we will change the group to the user group, for this we will execute the following lines in their order: mkdir -p /home/shares/allusersĬhown -R root:users /home/shares/allusers/Ĭhmod -R ug rwx,o rx-w /home/shares/allusers/Ĭhown -R root:users /home/shares/anonymous/Ĭhmod -R ug rwx,o rx-w /home/shares/anonymous/ Restart the Samba services by executing the following line: systemctl restart rvice Create Shared Folder on Debian Save the changes using the keys Ctrl O, and we left the editor using Ctrl X To check the name of the workgroup in Windows, we will execute the following line at the command prompt: net config Workstation Note: The workgroup field must be assigned with the correct name of the Windows workgroup. In the new file we will add the following lines: Now we will create the configuration file for Samba by running the next line: nano /etc/samba/smb.conf Next, we will move the file smb.conf to to have its initial configuration in case of any error we will execute the following command: mv /etc/samba/smb.conf /etc/samba/ Create Samba Configuration File We will access as root users in Debian 9, and we will execute the following line for the installation of Samba: apt-get -y install libcups2 samba samba-common cups ![]() Finally, save the changes in the Windows hosts file. In this case, it will be necessary to edit the IP address by the current server of each one and establish the correct hostname. This will open the hosts file as an administrator for editing. There we will add the next line: 192.168.0.13 bian debían To do this, we will open a console of the command prompt as administrators and execute the following line: notepad C:\Windows\System32\drivers\etc\hosts To be able to access from Windows to the Samba server in Debian we must edit the Windows hosts file. To edit the Samba configuration files, we will install the nano editor by executing the following line: apt-get install nano 2. Before Installing SAMBAīefore installing and configuring Samba in Debian 9, we will perform the following tasks for the optimal functioning of the connectivity between Linux and Windows. Now we will see how to install and configure Samba on Debian 9. Samba is an open source implementation for Linux environments of the Server Message Block (SMB) protocol which allows connections to be established between Windows, Linux and UNIX networks with full compatibility. How to install SAMBA server on Debian Linux and access from Windows 10. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |