Sample Header Ad - 728x90

MyCloud NAS permission problem

0 votes
0 answers
32 views
I have apparently a weird permission problem with a Western Digital MyCloud NAS. It is mounted by this fstab entry: //172.23.0.252/Public /mnt/NAS cifs vers=2.1,uid=1000,gid=1000,credentials=/root/.smbcredentials,iocharset=utf8,nobrl 0 0 the resulting mount: //172.23.0.252/Public on /mnt/NAS type cifs (rw,relatime,vers=2.1,sec=none,cache=strict,uid=1000,forceuid,gid=1000,forcegid,addr=172.23.0.252,file_mode=0755,dir_mode=0755,iocharset=utf8,soft,nounix,mapposix,nobrl,rsize=1048576,wsize=1048576,bsize=1048576,retrans=1,echo_interval=60,actimeo=1,closetimeo=1) The files on this WD NAS were created by restoring a backup from USB drive on May 20, 2022. I have no problem writing to NAS from a machine running Ubuntu 20.04. However I have a laptop I upgraded to 24.04 with a complete reformat. After much troubleshooting, I discovered the 25.04 install will not write to the NAS in any directory that was part of the 2022 restore. Directories created after May 20, 2022 seem to work OK. I though Apparmor was the problem but I have that disabled and still can't write. Here I am trying to write to directories from different dates: jbh@510S:/mnt/NAS$ touch Woodworking/DPWWC/Newsletter2025/2501/touch.test jbh@510S:/mnt/NAS$ touch Woodworking/DPWWC/Newsletter2024/2401/touch.test jbh@510S:/mnt/NAS$ touch Woodworking/DPWWC/Newsletter2023/2301/touch.test jbh@510S:/mnt/NAS$ touch Woodworking/DPWWC/Newsletter2022/2201/touch.test touch: cannot touch 'Woodworking/DPWWC/Newsletter2022/2201/touch.test': Permission denied jbh@510S:/mnt/NAS$ touch Woodworking/DPWWC/Newsletter2022/2207/touch.test jbh@510S:/mnt/NAS$ touch Woodworking/DPWWC/Newsletter2022/2204/touch.test jbh@510S:/mnt/NAS$ touch Woodworking/DPWWC/Newsletter2022/2203/touch.test touch: cannot touch 'Woodworking/DPWWC/Newsletter2022/2203/touch.test': Permission denied jbh@510S:/mnt/NAS$ I can write to Newsletter2022/2204/ but not to Newsletter2022/2203. 2203 was created by the restore on May 20 but modified after May 20 by the 20.04 machine. 2204 was created after May 20. jbh@510S:/mnt/NAS$ ls -ltr /mnt/NAS/Woodworking/DPWWC/Newsletter2022 | grep ^d drwxr-xr-x 2 jbh jbh 0 May 20 2022 2201 drwxr-xr-x 2 jbh jbh 0 May 20 2022 2202 drwxr-xr-x 2 jbh jbh 0 May 26 2022 2203 drwxr-xr-x 2 jbh jbh 0 Jul 29 2022 2206 drwxr-xr-x 2 jbh jbh 0 Aug 7 2022 2208 drwxr-xr-x 2 jbh jbh 0 Sep 7 2022 2205 drwxr-xr-x 2 jbh jbh 0 Nov 11 2022 2210 drwxr-xr-x 2 jbh jbh 0 Dec 11 2022 2212 drwxr-xr-x 2 jbh jbh 0 Oct 1 2023 2211 drwxr-xr-x 2 jbh jbh 0 Jan 19 15:02 2209 drwxr-xr-x 2 jbh jbh 0 Feb 9 14:15 2207 drwxr-xr-x 2 jbh jbh 0 Feb 9 14:15 2204 jbh@510S:/mnt/NAS$ This is blocking me from upgrading the remaining 20.04 machine. The MyCloud box runs Linux and I can SSH to it for more information if it helps.
Asked by Jim Harvey (1 rep)
Feb 9, 2025, 09:39 PM
Last activity: Feb 10, 2025, 03:34 AM