RobH wrote:
> On the Pi 4 with xeoma, the directories or folders have been created
> under /mnt , and I have a line in fstab to mount them. mount -a mounts
> the said directories.
>
> //192.168.0.22/CCTV/xeoma /mnt/CCTV/xeoma cifs
> credentials=/home/pi/.smbclient, uid=pi 0 0
>
> Now in xeoma, I am getting this error message:
>
> Archive is not being recorded! Failed to create the directory for the
> archive (/mnt/CCTV/xeoma)
Let's pause right there for a moment.
So far, you've (sorta) told us that
a) you have a NAS at 192.168.0.22 that uses the CIFS (microsoft network)
file system
b) you mount a subdirectory of this CIFS file system to a mountpoint on your
Raspberry Pi 4
c) you run xeoma (which, apparently, is a client/server security camera
recording/viewing application) on your RPi4
d) the server portion of xeoma attempts to create a directory under the CIFS
mount point
Do I have it correct so far?
If so, a few questions for you:
1) what rpi userid and groupid does xeoma run under?
2) do these match the uid (and default gid) that you used
when mounting the CIFS share? (remember, CIFS has no
concept of Linux users and groups; you have to specify
your desired values in the Linux mount command, and possibly
override the values that your NAS provides/expects)
> Back to the Pi4 to check permissions.
>
> pi@raspberrypi:/mnt $ ls -la
> total 0
> drwxr-xr-x 1 root root 60 Oct 26 10:24 .
> drwxr-xr-x 1 root root 160 Jan 1 1970 ..
> drwxrwxrwx 1 pi root 60 Oct 26 10:24 CCTV
It would have been helpful to see the permissions of /mnt/CCTV/xeoma rather
than just /mnt/CCTV.
> Then I changed owner, which was as above
>
> pi@raspberrypi:/mnt/CCTV $ sudo chgrp pi xeoma
> pi@raspberrypi:/mnt/CCTV $ ls -la
> total 0
> drwxrwxrwx 1 pi pi 60 Oct 26 10:24 .
> drwxr-xr-x 1 root root 60 Oct 26 10:24 ..
> drwxr-xr-x 2 pi root 0 Oct 28 10:30 xeoma
OK, ownership is as I would have expected it to be from the CIFS mount
options (you specified owning user of pi and defaulted the owning group to
root). Your chgrp isn't going to do any good; the group owner is specified
by the mount options, and (like all other CIFS permissions and ownership
information) is not changable through chown/chgrp.
> pi@raspberrypi:/mnt $ sudo chown pi CCTV
> pi@raspberrypi:/mnt $ ls -la
> total 0
> drwxr-xr-x 1 root root 60 Oct 26 10:24 .
> drwxr-xr-x 1 root root 160 Jan 1 1970 ..
> drwxrwxrwx 1 pi root 60 Oct 26 10:24 CCTV
>
>
> Then changed group:
>
> pi@raspberrypi:/mnt $ sudo chgrp pi CCTV
> pi@raspberrypi:/mnt $ ls -la
> total 0
> drwxr-xr-x 1 root root 60 Oct 26 10:24 .
> drwxr-xr-x 1 root root 160 Jan 1 1970 ..
> drwxrwxrwx 1 pi pi 60 Oct 26 10:24 CCTV
OK, so you can change ownership of a directory /above/ the mountpoint. I
don't see the reason for your action here; it contributes nothing to the
ownership of the directory (and it's subdirectories) in question.
> I then tried the same with the /mnt/CCTV/xeoma directory, but no change
> when changing the group
>
> pi@raspberrypi:/mnt/CCTV $ sudo chgrp pi xeoma
> pi@raspberrypi:/mnt/CCTV $ ls -la
> total 0
> drwxrwxrwx 1 pi pi 60 Oct 26 10:24 .
> drwxr-xr-x 1 root root 60 Oct 26 10:24 ..
> drwxr-xr-x 2 pi root 0 Oct 28 10:30 xeoma
>
> Still xeoma is complaining about not been able to create the directory.
>
> Have I missed something
Yes. Make certain that your mount options and your xeoma process agree on
userid and groupid.
--
Lew Pitcher
"In Skills, We Trust"
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|