[Geocoding] could not access file "/root/nominatim/module/nominatim.so":permission denied.

Troy Yang troyyang at thinkgeo.com
Fri Dec 18 07:07:29 UTC 2015


Sarah,

Thanks for the mention, I will give it another try. I did use root account to do all the jobs before.

Thanks,

Troy

-----Original Message-----
From: Sarah Hoffmann [mailto:lonvia at denofr.de] 
Sent: Thursday, December 17, 2015 6:06 AM
To: Troy Yang <troyyang at thinkgeo.com>
Cc: geocoding at openstreetmap.org
Subject: Re: [Geocoding] could not access file "/root/nominatim/module/nominatim.so":permission denied.

Hi,

On Wed, Dec 16, 2015 at 09:02:34AM +0000, Troy Yang wrote:
> These days, I am working on setup nominatim in my side and following the installation guide page. Now, the import osm file into postgre is successful.
> 
> But when I run "./utils/setup.php" -create-functions, I got Error "could not access file "/root/nominatim/module/nominatim.so":Permission denied.
> 
> I can sure the nominatim.so file exists and I am running the command with root account. I have no idea why there is still no permission. All the time I am using root account including get the nominatim source code with git.

Don't run the installation on a root account. One wrong turn and you destroy your system. And you gain nothing permissionwise, as you just discovered.

> Btw, I am an newbie on Linux, so maybe have some misunderstandings on the permissions system.
> 
> I tried to run:
> 
> chmod +x ~
> chmod +x ~/nominatim
> chmod +x ~/nominatim/module

What about the file itself? It must be readable by the postgres user. Try chmod +r /root/nominatim/module/nominatim.so

Oh, and did I mention that you must not run the whole stuff as root?

Sarah



More information about the Geocoding mailing list