On Mon, 25 Jun 2018 18:54:30 +0100, RobH declaimed the
following:
>On 25/06/18 00:32, gregor herrmann wrote:
>>
>> sudo mount -t cifs -o username=root,password=*****,uid=pi,gid=pi
//192.168.0.22/CCTV/PiZero/ /mnt/CCTV/PiZero
>>
>Now if I do:
>pi@raspberrypi:~ $ echo "hello" > /mnt/CCTV/test.txt
>
>It gets created in the PiZero CCTV folder
>
As expected given the mount command
>Now if I do:
>echo "hello" > /mnt/CCTV/PiZero/test.txt
>
>It doesn't get created, even tho' there was no follow up message about
>denied permission.
>
>Aah , but it did get created on the NAS box PiZero folder.
>
Also as expected for the mount command...
The mount command is very specific... Since you specified /CCTV/PiZero
on both the device and the mount point, ONLY the PiZero part has been
mounted, and the CCTV level is still local to each side.
If the mount command only specified /CCTV, then both of the echo test
statements should have generated files on the NAS, as you'd be mounted at a
higher level in the directory structure (and the /PiZero on the NAS side
would be visible because it is inside the /CCTV level that was mounted).
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|