I am doing a simple program on Lazarus to read a text file on my Ubuntu server (via LAN).
I cannot get passed this line:
AssignFile(TheFile,'//My-server-IP/home/myusername/folder/abc.txt');
I get an error saying Access denied. I've set the file's permission to 777 but no success.
I even tried using the path: //My-server-IP/var/www/folder/abc.txt but have the same result.
The client machine is Windows XP. But can be even Windows 7 or anything.
Any thoughts on getting around this issue are really valued.
//server/share/file is not a windows notation of UNC paths. Maybe you mean \server\share\file ?
I'm not sure if the FPC filename handling supports UNC. It is mostly based on Win32 -A functions, but tries to done some extra sanitizing of filenames.
Note that access outside the windows explorer will probably not autologin for you.