đHow To Install File Sharing With Samba Server
Introduction
Samba is software that uses the SMB protocol. Samba is an application that functions to share resources (such as data, printers) between computers connected to a network. So far, Samba is better known for exchanging data between devices using the Windows operating system, but the Samba server can also be used on Unix and Linux based operating systems. Samba servers are widely used because they are easy to configure and use.
Advantages
Samba allows us to share files and directories between different computers on a network. This allows Windows operating system users to access files stored on a Samba (Linux) server as if they were on a Windows computer.
We can use Samba to share printers with other computers on the network, including computers with the Windows operating system.
Samba supports user authentication, which means we can set access permissions to shared files and printers based on users or user groups.
Samba can function well in existing Windows network environments.
Apart from functioning as a file sharing server, Samba can also function as a domain controller, which allows setting and managing user domains on the network.
Configuration
Debian11- Server
Install Package
Create Directory
Give Full Access
Copy File
We will copy the file as a backup which will be useful when we go too far wrong. we just copy the smb.conf.backup
file to the default samba file name.
Configuration File
nano /etc/samba/smb.conf
Restart Service
User | Group | Path |
---|---|---|
rizwan-tjkt | tjkt | /home/share/tjkt |
rizwan-pplg | pplg | /home/share/pplg |
rizwan-mplb | mplb | /home/share/mplb |
Add Group & User
Change Permissions
Change Samba Password
Create Directory
Group Verification
Change Permission Directory
Samba File Configuration
nano /etc/samba/smb.conf
Restart Samba
Last updated