TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: HANS-WERNER KNEITINGER
date: 2020-10-06 15:38:00
subject: nfs has wrong mode

Hallo,
I am running an RPi4 with latest RasbianOS. I want to do an backup some
dirs/files on an Synology NAS via NFS nad rsync. It is working but mode
attributes are not correct. User / Group are right.

This is in my fstab:
192.168.2.5:/volume1/hoshi_ext/opt/fhem         /mnt/ds9_fhem   nfs
nfsvers=3,sync,noauto   0       0

A cron job is running this script:
---
#!/bin/bash
# Backuplaufwerk einhängen
mount /mnt/ds9_fhem && sleep 2

# FHEM Logadteien sichern sichern
rsync --delete -avzu /opt/fhem/log/ /mnt/ds9_fhem/

# Backuplaufwerk auswerfen
sleep2 && umount /mnt/ds9_fhem
---

If I mount the nfs manually and check with MC to the dir/files, user and
group are right, but mode is always 0777. It should be 0640 or 0644. Has
sombody an idea wats going wrong?
--
cu
hawe

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.