Samba
Depends on which linux you are, use your package manager, in this post I’ll use apt for Debian or derivates. For arch you can use pacman/yay/paru or whatever.
Install samba
|
|
Check if it was installed
|
|
the output must to be something like samba: /usr/lib/samba
Config
Make a dir
Make the folder to share, u can put it where you want and with the name that u want, if you want to have a folder on your home
|
|
Samba config
Edit samba config on /etc/samba/smb.conf
|
|
At the end of file add your share
|
|
Save and exit with :wq
Restart samba service
|
|
Setup an user for samba
|
|
Accessing Network Shares
Prerequisites
First, install the necessary utilities:
|
|
Temporary Mount (Manual Method)
- Create a local directory where you’ll mount the network share:
|
|
- Mount the network share using this command:
|
|
Where:
serveris the hostname or IP of the computer sharing the foldershare_nameis the name of the shared resourcesamba_useris the user (local or domain) with access permissions
Example:
|
|
Permanent Mount (via fstab)
To make the mount persistent across reboots, edit /etc/fstab:
|
|
Add this line:
|
|
For a more robust configuration that handles network delays and systemd integration:
|
|
Key additional options:
noauto,x-systemd.automount: Delays mounting until first access_netdev: Ensures network is available before mounting
Extras
For more detailed information, consult these Arch Linux wiki pages (which are excellent resources even for non-Arch users):