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
Post a Comment