Skip to content

Arch Linux File Sharing

Mattscreative edited this page Nov 19, 2025 · 2 revisions

📁 Arch Linux File Sharing Guide

Complete beginner-friendly guide to file sharing on Arch Linux, including Samba (Windows file sharing), NFS, and network file sharing setup.


📋 Table of Contents

  1. Samba Setup
  2. NFS Setup
  3. SSH File Sharing
  4. Troubleshooting

🪟 Samba Setup

Install Samba

Install Samba:

# Install Samba
sudo pacman -S samba

# Enable service
sudo systemctl enable smb nmb
sudo systemctl start smb nmb

Configure Samba

Edit config:

# Edit config
sudo vim /etc/samba/smb.conf

Example share:

[share]
    path = /home/user/share
    valid users = user
    read only = no
    browsable = yes

Create Samba User

Add user:

# Add Samba user
sudo smbpasswd -a username

# Enable user
sudo smbpasswd -e username

📂 NFS Setup

Install NFS

Install NFS:

# Install NFS
sudo pacman -S nfs-utils

# Enable service
sudo systemctl enable nfs-server
sudo systemctl start nfs-server

Configure NFS

Edit exports:

# Edit exports
sudo vim /etc/exports

Example:

/home/user/share 192.168.1.0/24(rw,sync,no_subtree_check)

Export:

# Export shares
sudo exportfs -ra

Mount NFS

Mount 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 0

🔐 SSH File Sharing

SSHFS

Install SSHFS:

# Install SSHFS
sudo pacman -S sshfs

# Mount
sshfs user@server:/path /mnt/ssh

# Unmount
fusermount -u /mnt/ssh

🔧 Troubleshooting

Samba Not Accessible

Check firewall:

# Allow Samba
sudo ufw allow samba

NFS Mount Issues

Check exports:

# Show exports
showmount -e server

📝 Summary

This guide covered Samba, NFS, and SSH file sharing setup.


🔗 Next Steps


This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.

Clone this wiki locally