Weird share issue between QNAP and Ubuntu

Discussion about using NAS on Linux and Unix OS.
Post Reply
RichJacot
Starting out
Posts: 38
Joined: Fri Apr 24, 2020 9:16 pm

Weird share issue between QNAP and Ubuntu

Post by RichJacot »

Hello,

I'm having a weird issues an my Ubuntu 20.04 VM (running on the QNAP I'm discussing here)

I have several shares on the QNAP but the one I'm having issues with is a Media share.

In the shared folder permissions rjacot has Read/Write to the Media share.

On the QNAP itself:

[rjacot@TVS-672N Media]$ pwd
/share/CACHEDEV1_DATA/Media
[rjacot@TVS-672N Media]$ ll
total 316K
drwxrwxrwx 18 admin administrators 4.0K 2021-03-22 14:33 ./
drwxrwxrwx 56 admin administrators 4.0K 2021-03-22 13:32 ../
drwxrwxrwx 11 admin administrators 4.0K 2021-03-22 14:14 4k/
drwxrwxrwx 2 admin administrators 4.0K 2021-03-14 07:53 .AppleDB/
drwxrwxrwx 127 admin administrators 20K 2021-03-10 14:50 Christmas/
drwxrwxrwx 5 admin administrators 4.0K 2021-03-22 14:14 Download/
-rw-rw-rw- 1 admin administrators 31K 2021-03-22 11:26 .DS_Store
drwxrwxrwx 264 admin administrators 24K 2021-03-07 19:15 Kids/
lrwxrwxrwx 1 rjacot everyone 6 2021-03-19 08:28 movies -> Movies/
drwxrwxrwx 523 admin administrators 48K 2021-03-22 14:26 Movies/
drwxrwxrwx 5 admin administrators 4.0K 2021-02-02 10:41 .streams/
lrwxrwxrwx 1 rjacot everyone 2 2021-03-19 08:28 tv -> TV/
drwxrwxrwx 175 admin administrators 44K 2021-03-22 10:50 TV/
[rjacot@TVS-672N Media]$

On the Ubuntu host:

rjacot@ubuntu:/mnt$ pwd
/mnt
rjacot@ubuntu:/mnt$ ll
total 8.0K
drwxr-xr-x 2 rjacot 0 Mar 22 03:30 Backups/
drwxr-xr-x 2 rjacot 0 Mar 22 11:33 Download/
drwxrwxrwx 2 rjacot 4.0K Feb 19 08:07 Downloads/
drwxr-xr-x 2 rjacot 0 Mar 22 14:33 Media/
drwxr-xr-x 2 rjacot 0 Mar 22 13:31 Misc/
drwxr-xr-x 2 rjacot 0 Mar 14 07:53 Music/
drwxrwxrwx 2 rjacot 4.0K Feb 19 08:07 Torrents/
rjacot@ubuntu:/mnt$ cd Media/
rjacot@ubuntu:/mnt/Media$ ll
total 40K
drwxr-xr-x 2 rjacot 0 Mar 22 14:14 4k/
drwxr-xr-x 2 rjacot 0 Mar 10 14:50 Christmas/
drwxr-xr-x 2 rjacot 0 Mar 22 14:14 Download/
-rwxr-xr-x 1 rjacot 31K Mar 22 11:26 .DS_Store
drwxr-xr-x 2 rjacot 0 Mar 7 19:15 Kids/
drwxr-xr-x 2 rjacot 0 Mar 22 14:26 movies/
drwxr-xr-x 2 rjacot 0 Mar 22 14:26 Movies/
drwxr-xr-x 2 rjacot 0 Mar 21 08:43 Oldies/
drwxr-xr-x 2 rjacot 0 Mar 22 10:50 tv/
drwxr-xr-x 2 rjacot 0 Mar 22 10:50 TV/
rjacot@ubuntu:/mnt/Media$


The Ubuntu fstab looks like:

rjacot@ubuntu:/mnt/Media$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/vda5 during installation
UUID=09db9129-f5b3-4726-97cc-19a0d3d2b5e9 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/vda1 during installation
UUID=93A5-BB65 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
//192.168.1.11/Media /mnt/Media cifs credentials=/home/rjacot/.smbcredentials1,uid=rjacot 0 0
//192.168.1.11/Misc /mnt/Misc cifs credentials=/home/rjacot/.smbcredentials2,uid=rjacot 0 0
//192.168.1.11/Download /mnt/Download cifs credentials=/home/rjacot/.smbcredentials3,uid=rjacot 0 0
//192.168.1.11/Backups /mnt/Backups cifs credentials=/home/rjacot/.smbcredentials4,uid=rjacot 0 0
//192.168.1.11/Music /mnt/Music cifs credentials=/home/rjacot/.smbcredentials5,uid=rjacot 0 0
rjacot@ubuntu:/mnt/Media$

The .smbcredentials1 file: (btw all of them are the same. Yes, I could have used the same file but I'm learning)

rjacot@ubuntu:~$ sudo cat .smbcredentials1
[sudo] password for rjacot:
user=rjacot
password=password Obviously I changed the real pw. ;-)
rjacot@ubuntu:~$


I can cd to my /mnt/Media and touch a file and it creates it. If I go to some of the subdirs in /mnt/Media, I CAN touch a file and some I cannot.

Here are some that work and some that don't.

rjacot@ubuntu:/mnt/Media$ touch ./TV/test
touch: cannot touch './TV/test': No such file or directory
rjacot@ubuntu:/mnt/Media$ touch ./Download/test
rjacot@ubuntu:/mnt/Media$ touch ./4k/test
rjacot@ubuntu:/mnt/Media$ touch ./Movies/test
touch: cannot touch './Movies/test': No such file or directory
rjacot@ubuntu:/mnt/Media$ rm ./Download/test ./4k/test
rjacot@ubuntu:/mnt/Media$

The permissions look right, the same on all subdirs. I don't understand why some subdirs are okay and some aren't.

Ideas or any other info I can provide?

TIA
TVS-672N - 32GB - 4.5.1.1594 - Static volume - RAID5 - 6 x 10TB Ironwolf --- Thick Volume RAID1 - 2 x 500GB M.2 SSD - CT500P1SSD8 in a QM2-2P10G1TA
TS-453B - 16GB - 4.5.1.1540 - Static volume - RAID5 - 4 x 4TB WD Red
RichJacot
Starting out
Posts: 38
Joined: Fri Apr 24, 2020 9:16 pm

Re: Weird share issue between QNAP and Ubuntu

Post by RichJacot »

I 'may' have found the issue.

I found spot in the QNAP shared folds section that has a dropdown for "Microsoft Networking Host Access" where I had to specify which hosts have this access. I did that and it's working again without a reboot. I'm not exactly sure why this "fixed" it but it is working again, without a reboot. Like I mentioned the QNAP shares Media and Movies is under that. If CIFS hosts weren't allowed, I don't know why I would write a file in Media and not Movies. Once it catches up on my automated downloads I'll reboot and confirm it's still working. To your point. On the NAS itself, rjacot is part of the admin group and the admin group has RW on the shared folders. admin is the owner and administrators is the group of all the shares on the QNAP. Media and subfolders have that same ownership so I'm confused.

On my Ubuntu VM, is there a better option instead of CIFS?
TVS-672N - 32GB - 4.5.1.1594 - Static volume - RAID5 - 6 x 10TB Ironwolf --- Thick Volume RAID1 - 2 x 500GB M.2 SSD - CT500P1SSD8 in a QM2-2P10G1TA
TS-453B - 16GB - 4.5.1.1540 - Static volume - RAID5 - 4 x 4TB WD Red
Post Reply

Return to “Linux & Unix (NFS)”