-
-
Notifications
You must be signed in to change notification settings - Fork 1
Arch Linux File Sharing
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to file sharing on Arch Linux, including Samba (Windows file sharing), NFS, and network file sharing setup.
Install Samba:
# Install Samba
sudo pacman -S samba
# Enable service
sudo systemctl enable smb nmb
sudo systemctl start smb nmbEdit config:
# Edit config
sudo vim /etc/samba/smb.confExample share:
[share]
path = /home/user/share
valid users = user
read only = no
browsable = yes
Add user:
# Add Samba user
sudo smbpasswd -a username
# Enable user
sudo smbpasswd -e usernameInstall NFS:
# Install NFS
sudo pacman -S nfs-utils
# Enable service
sudo systemctl enable nfs-server
sudo systemctl start nfs-serverEdit exports:
# Edit exports
sudo vim /etc/exportsExample:
/home/user/share 192.168.1.0/24(rw,sync,no_subtree_check)
Export:
# Export shares
sudo exportfs -raMount share:
# Mount NFS
sudo mount -t nfs server:/home/user/share /mnt/nfs
# Auto-mount in fstab
server:/home/user/share /mnt/nfs nfs defaults 0 0Install SSHFS:
# Install SSHFS
sudo pacman -S sshfs
# Mount
sshfs user@server:/path /mnt/ssh
# Unmount
fusermount -u /mnt/sshCheck firewall:
# Allow Samba
sudo ufw allow sambaCheck exports:
# Show exports
showmount -e serverThis guide covered Samba, NFS, and SSH file sharing setup.
- Arch Linux Networking - Network setup
- Arch Linux Security Configuration - Security
- ArchWiki Samba: https://wiki.archlinux.org/title/Samba
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.