rsync: delete_file: failed: Permission denied (13)

hendry

Explorer
Joined
May 24, 2018
Messages
98
Hi there, I run a mirror for a Linux distro like so:
1621658352767.png

However I've only recently discovered thanks to finally getting a mail service configured that rsync was failing to delete old packages:
1621658408711.png

I had a closer look at `/mnt/red/mirror` and there permissions appear to be "998"... whatever that is:

Code:
freenas% ls -lah
total 18525
drwxr-xr-x    10 root  wheel    10B Mar 24  2019 .
drwxr-xr-x     8 root  wheel     8B Mar  3  2019 ..
drwxrwxr-x     6 998   998     120K Nov 27 23:25 current
drwxr-xr-x     2 998   998     205B Nov 19  2020 distfiles
drwxr-xr-x    11 998   998      28B Nov 28 00:00 docs
drwxr-xr-x    11 998   998      12B Jul 23  2020 live
drwxr-xr-x     2 998   998       3B Apr 18  2016 logos
drwxr-xr-x     2 998   998     148B Mar 13  2020 static
drwxr-xr-x  1900 998   998     3.7K Nov 27 12:11 void-updates
drwxrwxr-x     3 998   998       4B Nov 27 14:00 xlocate


I'm not sure what my tact now is to resolve this permission problem. Would "Preserve Permissions" help, I wouldn't think so.
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
Hi there, I run a mirror for a Linux distro like so:
View attachment 47311
However I've only recently discovered thanks to finally getting a mail service configured that rsync was failing to delete old packages:
View attachment 47312
I had a closer look at `/mnt/red/mirror` and there permissions appear to be "998"... whatever that is:

Code:
freenas% ls -lah
total 18525
drwxr-xr-x    10 root  wheel    10B Mar 24  2019 .
drwxr-xr-x     8 root  wheel     8B Mar  3  2019 ..
drwxrwxr-x     6 998   998     120K Nov 27 23:25 current
drwxr-xr-x     2 998   998     205B Nov 19  2020 distfiles
drwxr-xr-x    11 998   998      28B Nov 28 00:00 docs
drwxr-xr-x    11 998   998      12B Jul 23  2020 live
drwxr-xr-x     2 998   998       3B Apr 18  2016 logos
drwxr-xr-x     2 998   998     148B Mar 13  2020 static
drwxr-xr-x  1900 998   998     3.7K Nov 27 12:11 void-updates
drwxrwxr-x     3 998   998       4B Nov 27 14:00 xlocate


I'm not sure what my tact now is to resolve this permission problem. Would "Preserve Permissions" help, I wouldn't think so.
Hmmm... 998 is the owner's user and group ID in the directory listing above. These must be coming from the Linux server, as TrueNAS 12.x doesn't have a user or group with an ID of 998. Perhaps creating a user account on your TrueNAS/FreeNAS system with UID and GID both set to 998 will help with your problem?

Please post your system specifications -- hardware, version of TrueNAS/FreeNAS you are using, etc., per the forum rules -- so users here on the forum will be better able to assist you.

Good luck!
 

hendry

Explorer
Joined
May 24, 2018
Messages
98
Please post your system specifications -- hardware, version of TrueNAS/FreeNAS you are using, etc., per the forum rules -- so users here on the forum will be better able to assist you.

I put them in my signature/footer, is that not good enough?
 
Top