python and ubuntu's environment
iceblink at seti.nl
Wed Jul 24 07:51:20 UTC 2013
On 2013-07-23 17:48, Tung Thanh wrote:
> Thank you for your very useful and fast answer
> there is command or somehow that I can change my our username mywps
> to be able for calling wps web services or there is the command line
> how to check for which username and permission were pointed when I
> web service from outside or locally
> I was sucked for more than one week,
> Many Thanks
There is the command "sudo" that allows you to do 1 single command as
another user, for instance "sudo -u wps ls" will perform the command
"ls" as user wps.
There is also the command "su" that allows you to do everythgin as
another user, i.e. "su wps".
You may need to add yourself to the /etc/sudoers file to obtain
permission for impersonating another user.
But frankly I think the best way to solve this is to debug via Python
itself, becaus that will show you exactly what is happening within the
More information about the ubuntu-users