Permission inside setenv.sh

View: New views
3 Messages — Rating Filter:   Alert me  

Permission inside setenv.sh

by Kupen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

--
pk

--
Saunalahti DataPaketti - tilaa nyt, saat 2 kk veloituksetta ja Nettitikun kaupan päälle!
http://saunalahti.fi/gsm/gsmdatapaketti.php 

_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Permission inside setenv.sh

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?
>
>
>  

Pena,

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.

Norm
_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Parent Message unknown Re: Permission inside setenv.sh

by Kupen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank's.

Then it's working ok.

--
pk

Normand Savard <nsavard@...> kirjoitti:

> 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?
> >
> >
> >  
>
> Pena,
>
> 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.
>
> Norm
>


--
Saunalahti DataPaketti - tilaa nyt, saat 2 kk veloituksetta ja Nettitikun kaupan päälle!
http://saunalahti.fi/gsm/gsmdatapaketti.php 

_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite