Synology NAS - Changing Rights

Hi There.

First, sorry my English is bad, im from Germany.

My Problem:

Ive binded my synology NAS with mount XX XX XX XX etc.
Thats working.
Ive mounted to my home/users/Station folder, and i can access it via Filebrowser,play videos and so on.
But i cant delete,rename and so the files because i dont have the permissions.
In properties i see thats root and im not the owner.

So how can i change the permissions after the mount to full access.

Thanks for your help.

bye

What’s the command that you use to mount? You need to specify the user/group and permissions option to mount command like this:
sudo mount -o umask=0022,uid=user,gid=user /dev/sda1 /mnt/

sudo mount -t nfs XXX.XXX.XXX.XX:/volume1/DiskStation /home/user/DiskStation

Thats my terminal command

Add -o umask=0022,uid=user,gid=user to this command.

The command i write:

sudo mount -t nfs xxx.xxx.xxx.xx:/volume1/DiskStation /home/user/DiskStation -o umask=0022,uid=user,gid=user

That give me the error message:

A dependency job for rpc-statd.service failed. See ‘journalctl -xe’ for details.
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use ‘-o nolock’ to keep locks local, or start statd.

Try:
systemctl start rpc-statd

Also this is not a question about Qubes but a general Linux question so it’d be better to ask this on stackexchange/superuser/etc.

This Error comes:

A dependency job for rpc-statd.service failed. See ‘journalctl -xe’ for details.

Check journalctl -xe to see what’s the exact error.

May 17 16:07:35 DiskStation xdg-desktop-por[960]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list
May 17 16:12:39 DiskStation sudo[1341]: user : TTY=pts/0 ; PWD=/home/user ; USER=root ; COMMAND=/usr/bin/systemctl start rpc-statd
May 17 16:12:39 DiskStation sudo[1341]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
May 17 16:12:39 DiskStation sudo[1341]: pam_unix(sudo:session): session closed for user root

What’s the output of this command?
journalctl -u rpc-statd.service

user@DiskStation:~$ journalctl -u rpc-statd.service
Hint: You are currently not seeing messages from other users and the system.
Users in groups ‘adm’, ‘systemd-journal’ can see all messages.
Pass -q to turn off this notice.
– Journal begins at Mon 2023-05-15 17:23:13 CEST, ends at Wed 2023-05-17 16:52>
– No entries –
lines 1-2/2 (END)

Try with sudo:
sudo journalctl -u rpc-statd.service

– Journal begins at Mon 2023-05-15 17:23:12 CEST, ends at Wed 2023-05-17 17:02:43 CEST. –
May 17 16:49:19 DiskStation systemd[1]: Dependency failed for NFS status monitor for NFSv2/3 locking…
May 17 16:49:19 DiskStation systemd[1]: rpc-statd.service: Job rpc-statd.service/start failed with result ‘dependency’.
May 17 16:51:31 DiskStation systemd[1]: Dependency failed for NFS status monitor for NFSv2/3 locking…
May 17 16:51:31 DiskStation systemd[1]: rpc-statd.service: Job rpc-statd.service/start failed with result ‘dependency’.

Try:

sudo  systemctl start    rpcbind.service   
sudo  systemctl restart  rpcbind.service

linux - NFS no longer mounts: rpc-statd fails to start - Unix & Linux Stack Exchange

user@DiskStation:~$ sudo systemctl start rpcbind.service
Failed to start rpcbind.service: Unit rpcbind.service is masked.
user@DiskStation:~$ sudo systemctl restart rpcbind.service
Failed to restart rpcbind.service: Unit rpcbind.service is masked.

Try:

sudo systemctl unmask rpcbind.service
sudo systemctl start rpcbind.service   
sudo systemctl restart rpcbind.service

user@DiskStation:~$ sudo systemctl unmask rpcbind.service
user@DiskStation:~$ sudo systemctl start rpcbind.service
A dependency job for rpcbind.service failed. See ‘journalctl -xe’ for details.
user@DiskStation:~$ sudo systemctl restart rpcbind.service
A dependency job for rpcbind.service failed. See ‘journalctl -xe’ for details.
user@DiskStation:~$

Most probably rpcbind.service depends on another masked service and you need to unmask it as well. You need to trace the errors in journalctl for failed services.
Anyway it’s better to continue with this problem on stackexchange/superuser as it’s not Qubes-related.

After i unmask nfs-common, rpcbind.service the journal output is:

May 17 18:05:02 DiskStation systemd[1]: Starting NFS status monitor for NFSv2/3 locking…
May 17 18:05:02 DiskStation rpc.statd[1096]: Version 1.3.3 starting
May 17 18:05:02 DiskStation rpc.statd[1096]: Flags: TI-RPC
May 17 18:05:02 DiskStation rpc.statd[1096]: Failed to read /var/lib/nfs/state: Success
May 17 18:05:02 DiskStation rpc.statd[1096]: Initializing NSM state
May 17 18:05:02 DiskStation systemd[1]: Started NFS status monitor for NFSv2/3 locking…

then i want moutn my nas with the mountcommand:

sudo mount -t nfs 192.168.178.26:/volume1/DiskStation /home/user/DiskStation -o umask=0022,uid=1026,gid=100

i got this error:
mount.nfs: an incorrect mount option was specified

Read the answers here: