[FGS] Permission inside setenv.sh
nsavard at mapgears.com
Thu Aug 13 12:44:55 EST 2009
Pena Kupen wrote:
> Hello again,
> fgs environment installed as root on port 80 with umask 0022
> All seems to work ok, but when running $FGS_HOME/setenv.sh different user (postgres on my case) I get error
> -bash: /opt/fgs/lib/python2.6/site-packages/mapscript.pth: Permission denied
> * FGS runtime ready in '/opt/fgs', use fgs command.
> rights on file are
> -rw-r--r-- 1 root root 27 Aug 13 16:19 mapscript.pth
> -rw-r--r-- 1 root root 119 May 26 00:11 README
> Maybe should be also exec?
If you install it as root you have to set the environment or "fgs start"
as root. So you have to do "sudo su -" then ". setenv.sh" and whatever
commands you want after.
More information about the Foss-gis-suite