TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ANDY BURNS
from: ROBH
date: 2018-06-24 20:11:00
subject: Re: ftp causing invalid s

On 16/06/18 09:49, Andy Burns wrote:
> On 16/06/2018 09:34, RobH wrote:
>
>> IOError: [Errno 13] Permission denied:
>> '/mnt/CCTV/PiZero/2018-06-15_23.04.43.h264'
>
> What happens if you manually try
>
> echo "hello" > /mnt/CCTV/PiZero/test.txt
>
> does the file get created? zero bytes long?


Ok, I was getting permission denied with everything on the
/mnt/CCTV/PiZero folder.

I removed all the existing files from the PiZero /mnt/CCTV/Pizero folder
as they were all write protected, and had to reboot for the folder to
show 0 files.

When I do ls -l
I get total 4
drwxrwxrwxrwx 2 pi:pi 4096 June 24 18.47 PiZero

Then because of a reboot, I have to:
pi@raspberrypi:~ $ sudo mount -t cifs -o username=root,password=2Sm4k5
//192.168.0.22/CCTV/PiZero/ /mnt/CCTV/PiZero


And now:

pi@raspberrypi:/mnt/CCTV $ ls -l
total 0
drwxrwxr-x 2 root nogroup 0 Jun 24 18:55 PiZero

When I try to remove it:
pi@raspberrypi:/mnt/CCTV $ sudo rm -r PiZero
rm: cannot remove 'PiZero': Device or resource busy
pi@raspberrypi:/mnt/CCTV $

So for some reason as soon  as the PIZero directory is mounted, it
becomes owned by root, as above with sudo mount.

If I remove -o I get:

pi@raspberrypi:~ $ mount -t cifs -o username=root,password=2Sm4k5
//192.168.0.22/CCTV/PiZero/ /mnt/CCTV/PiZero
mount: only root can use "--options" option
pi@raspberrypi:~ $ mount -t cifs  username=root,password=2Sm4k5
//192.168.0.22/CCTV/PiZero/ /mnt/CCTV/PiZero
mount: only root can use "--types" option

Now I am between the devil and the deep blue sea


Before I mount the PiZero directory it is owned by pi:pi, but after I
mount the PiZero directory it is owned by root

I have also tried echo "hello" > /mnt/CCTV/test.txt , but nothing is
created on the said directory, although the file is created on the
actual PiZero CCTV directory

pi@raspberrypi:~ $ cd /mnt/CCTV
pi@raspberrypi:/mnt/CCTV $ ls
PiZero  test.txt
pi@raspberrypi:/mnt/CCTV $

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.