Introduction
You should use NFS for dedicated Linux Client to Linux Server connections.
For mixed Windows/Linux environments use Samba.
Server
linux
Dependency Installation
|
|
configuration file
Need to create /etc/samba/smb.conf before starting the service systemctl start smb
You can get an example configuration file from Samba Git Repository.
Get help about writing the configuration file with man smb.conf.
Here’s mine:
|
|
user management
we need to have a user to access linux files.
- For anonymous access, we use the guest account (by default, it’s user
nobody) - If you want to access files in a home directory, you should login as that user.
We need to specifically add a user (an existing linux user, or a non-existing one – samba will create the user for you) to samba, then set a password for that user (can be different from your linux login password)
|
|
And by default, when you access a samba server with a user, you can browser that user’s home directory (if it has one).
start
|
|
Client
windows
In the file manager location bar, input: \\servername\[share], then you may remap any folder to a drive.
tips: to clean user credentials (or with the control panel GUI)
|
|
linux
With a file manager:
https://wiki.archlinux.org/title/samba#File_manager_configuration
In the location bar, input: smb://servername/share
With a command line tool: smbclient
|
|
mount at startup
|
|