Forum Discussion

VolkerB's avatar
VolkerB
Aspirant
Apr 23, 2026
Solved

Issue with old user permissions and NFS

I recently migrated my RN214 to expose NFS shares instead of SMB (no Windows PCs anymore). Turned out that there was a UID collision, user "volker" was auto-assigned UID 100 which I didn't care too m...
  • VolkerB's avatar
    Apr 30, 2026

    Here's what I did in a nutshell. Hope that helps.

    # SMB → NFS Migration (UID/GID aligned)

     

    * Problem: SMB does not reliably preserve timestamps → breaks rsync incremental backups

    * Solution: switch to NFS with consistent UID/GID

     

    ---

     

    # 0. Target State

     

    * volker → UID 1000

     

    * anja → UID 1001

     

    * shared group: users (GID 100 on NAS + client)

     

    * /data/Media → group RW (users)

     

    * /home → per-user ownership

     

    * NFS uses numeric IDs (must match!)

     

    ---

     

    # 1. NAS Setup (RN214)

     

    ## Users

     

    * Create:

     

    * volker_new (UID 1000)

    * anja_new (UID 1001)

     

    * Trigger home creation via SMB login once

     

    * Rename:

     

    * old → *_old

    * *_new → final names

     

    ## Fix ownership (/data/Media)

     

    * chown -R --from=100:100 1000:100 /data/Media

     

    * chown -R --from=101:100 1001:100 /data/Media

     

    * cleanup check:

     

    * find /data/Media -uid 100

    * find /data/Media -uid 101

     

    ## Fix permissions

     

    * chown -R :users /data/Media

    * chmod -R 2775 /data/Media

     

    ## /home migration (if needed)

     

    * move data or just:

     

    * chown -R 1000:100 /data/home/volker

    * chown -R 1001:100 /data/home/anja

     

    * ensure ~/.ssh:

     

    * chmod 700 ~/.ssh

    * chmod 600 ~/.ssh/authorized_keys

     

    ## Final cleanup

     

    * ensure no UID 100/101 left anywhere

     

    ---

     

    # 2. Client Setup

     

    ## Group

     

    * getent group users

    * if missing: sudo groupadd -g 100 users

     

    ## Add users

     

    * sudo usermod -aG users volker

    * sudo usermod -aG users anja

    * relog or newgrp users

     

    ## Install NFS + mount points

     

    * sudo apt install nfs-common

    * mkdir -p /media/rn214-Home

    * mkdir -p /media/rn214-Media

     

    ---

     

    # 3. NFS + fstab

     

    ## Enable on NAS

     

    * /home → NFS on

    * /data/Media → NFS on

     

    * RW, async, root_squash, NO all_squash

     

    ## /etc/fstab

     

    * rn214-volker:/home /media/rn214-Home nfs noauto,users,nfsvers=3 0 0

     

    * rn214-volker:/data/Media /media/rn214-Media nfs noauto,users,async,nfsvers=3 0 0

     

    * sudo systemctl daemon-reload

     

    ---

     

    # 4. Test

     

    * mount /media/rn214-Home

    * mount /media/rn214-Media

     

    ## Verify IDs (IMPORTANT)

     

    * ls -ln → must show:

     

    * 1000 100

    * 1001 100

     

    ## Write test

     

    * touch + delete file → must work without sudo

     

    ---

     

    # 5. rsync Migration (SMB → NFS)

     

    ## Copy

     

    * rsync -aHAX --dry-run --no-xattrs --no-g /source/ /dest/

    * rsync -aHAX --no-xattrs --no-g /source/ /dest/

     

    ## Verify

     

    * rsync --dry-run again

    * no output = perfect

     

    ## Finalize

     

    * rename:

     

    * user → user_old

    * user_new → user

    * test access

    * delete old only after verification

     

    ---

     

    # 6. Common Issues

     

    * UID 100/101 still exist

    → migration incomplete

     

    * permission denied

    → missing users group on client

     

    * root issues

    → check NO all_squash

     

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More