On 28/10/2019 12:16, RobH wrote:
> On 28/10/2019 11:27, NY wrote:
>> "RobH" wrote in message
>> news:h1o0j0Ffvg5U1@mid.individual.net...
>>
>>> 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
>>
>> Seems odd. Try removing the xeoma directory and making a new one, and
>> then chowning and chgrping it.
>>
>> Also as a test, try chmodding xeoma to go+w, so the program can create
>> any files and subdirectories without group and owner being important.
>> That will at least check that this is possible, even though the best
>> long-term solution is to sort out group ownership and chmod back to go-w.
>>
>> What happens if you cd to /mnt/CCTV/xeoma and then "sudo chgrp pi ." -
>> that should have the same effect as being one directory up in
>> /mnt/CCTV and chgrping xeoma... but does it?
>
> I can't remove the xeoma directory because it has 2 other directories in
> it which I also can't remove by doing rm -r directory, even after
> changing owner and permissions. Group doesn't change
>
> Doing sudo chgrp pi . didn't do anything, nor did sudo chgrp go-w xeoma
>
> There must be some way to delete/remove the said directories. I've only
> used linux/ubuntu for about 2 years, but didn't have this problem with
> permissions and removing directies.
Update:
I rebooted the Pi 4, and this time I managed to change both owner and
group of both the CCTV and xeoma directories from root to pi.
I've no idea why it took a reboot to sort it out?????
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|