161 reputation
6
bio website
location
age
visits member for 2 years, 5 months
seen Nov 14 '13 at 9:00

Oct
23
awarded  Popular Question
Jan
26
awarded  Tumbleweed
Jan
19
revised Can issetuid() be cleared for a child process?
edited tags
Jan
19
accepted Is there a difference between using setuid()/setgid() within a program and invoking it with sudo -u xxx -g xxx?
Jan
19
asked Can issetuid() be cleared for a child process?
Jan
12
awarded  Supporter
Jan
12
comment Is there a difference between using setuid()/setgid() within a program and invoking it with sudo -u xxx -g xxx?
Thanks, this is helpful. My own test script reports that the real/effective gid/uids are the same; and the "getresuid" test in your example fails-- I'm guessing Ubuntu doesn't support it. The only thing I can guess is different (based on your example) is the result of issetuid(). I can't find much documentation on this at all. What effects might it have on permissions/program behavior? How can I clear it to see if that's my problem? Is clearing it safe? If not, how do I properly relinquish root privileges?
Jan
2
asked Is there a difference between using setuid()/setgid() within a program and invoking it with sudo -u xxx -g xxx?
Nov
13
comment How can I use HAL in recent versions of Ubuntu?
Update: The example code at the other end of your link should read iface = dbus.Interface(proxy, "org.freedesktop.UDisks") (instead of ...UDisks.Device). Also, I found that udisks wasn't even installed on my system, so that was part of the problem :). All seems to be working now. Thanks!
Nov
13
awarded  Scholar
Nov
13
accepted How can I use HAL in recent versions of Ubuntu?
Nov
8
revised How can I use HAL in recent versions of Ubuntu?
edited tags
Nov
8
comment How can I use HAL in recent versions of Ubuntu?
Hmm. I tried that example code, and got an 'unknown service' exception when I try to get_object(), as here. Per that link, I tried replacing 'SystemBus' with 'SessionBus' (X11 initialization error-- headless server!) and also 'SystemSession' (does not exist).
Nov
7
asked How can I use HAL in recent versions of Ubuntu?
Nov
7
awarded  Editor
Nov
7
revised Do something when CD/DVD/Blu-Ray inserted
added 867 characters in body
Nov
7
awarded  Student
Nov
7
asked Do something when CD/DVD/Blu-Ray inserted