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

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -