python - Executing command non root -


i have script being run root. part of script calls pythons webbrowser.open.

currently when webbrowser.open executed attempt open browser using scripts root/sudo user.

is there way open script current user , not root?

maybe should downgrade privileges of script, using

import os os.setuid(1000) 

have other tools, seteuid() , setgid() here : http://docs.python.org/2/library/os.html

cheers,

k.


Comments

Popular posts from this blog

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -