python and ubuntu's environment

Tung Thanh con500thoi at yahoo.com
Fri Jul 26 14:02:18 UTC 2013



Thank PatrickĀ 


I have fixed this errors already.

Many thanks again

________________________________
 From: Patrick Asselman <iceblink at seti.nl>
To: ubuntu-users at lists.ubuntu.com 
Sent: Wednesday, July 24, 2013 9:51 AM
Subject: Re: python and ubuntu's environment
 

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 
> run
> web service from outside or locally
>
> I was sucked for more than one week,
>
> Many Thanks
>
> T.X.Tung
>

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 
Python environment.


Best regards,
Patrick Asselman


-- 
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130726/599f87e4/attachment.html>


More information about the ubuntu-users mailing list