I mounted a SMB share folder under /mnt/smb/ and I can access the files. When I unmount this shared folder using command:
umount /mnt/smb/
naturally I cannot list shared folder contents using command:
ls /mnt/smb/
But the problem is when I run the ls command from a PHP file on the same machine, the contents of shared SMB folder can be listed! The contents of PHP file is:
<?php
$command = 'ls /mnt/smb/';
$result = shell_exec($command);
echo $result;
?>
What is my mistake. Is there any other commanf needed for completely unmount the SMB share? I also used command below but there was no luck:
fusermount -u /mnt/smb/