The beginning of wisdom is to call things by their right names. - Chinese
Proverb (So I'm told at least, I'd check with the Chinese first though ;)
--
http://mail.python.org/mailman/listinfo/python-list
On 20 May 2011 18:21, rusi rustompm...@gmail.com wrote:
On May 20, 1:48 pm, Hans Georg Schaathun h...@schaathun.net wrote:
On 20 May 2011 06:55:35 GMT, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
: On Thu, 19 May 2011 22:13:14 -0700, rusi wrote:
:
: [I agree with
On 5 March 2011 02:14, MRAB pyt...@mrabarnett.plus.com wrote:
...
Any comments, suggestions?
You obviously can't feed your computer pickles then.
How about a tasty tidbit of XML? Served up in a main dish of DOM, or
serially if preferred?
--
http://mail.python.org/mailman/listinfo/python-list
http://hal.freedesktop.org/docs/polkit/pkexec.1.html
http://hal.freedesktop.org/docs/polkit/polkit.8.html
http://www.freedesktop.org/wiki/Software/PolicyKit
A python package:
http://pypi.python.org/pypi?:action=searchterm=polkitsubmit=search
But there is example python code here:
On 17 February 2011 18:39, Adam Skutt ask...@gmail.com wrote:
...
As Terry suggests (and I fully concur), all of these issues are best
solved by having a privileged daemon (though it may not need to be
root or entirely root).
I think this could be done more or less with the multiprocessing
On 18 February 2011 20:21, Alexander Kapps alex.ka...@web.de wrote:
...
IIUC, than SELinux can also help, since it allows program-specific
permissions. But I could easily be wrong here since I have yet to really
learn SElinux.
Who has, LOL! If you could post a (very very) quick 'I don't have
On 18 February 2011 20:23, Alexander Kapps alex.ka...@web.de wrote:
...
Don't know if this helps you, but at least for CentOS 5.4, gksudo is
available in the gksu package from rpmforge.
It looks as though policykit includes similar functionality, namely
the command pkexec replaces gksudo:
I'm having a awfully hard time figuring out why a home CCTV
application might need privilege at all. Are you sure you really need
privilege? It sounds to me like there may be some larger design
issues mandating the need for privilege when it's not really
necessary.
A user login should
Could restarts and cleanups be done with a root daemon separate from user
scripts?
I like the idea of a user creating a login as you do typically with
client/server progs, no need to have the root password all the time:
http://www.python.org/dev/peps/pep-3143/
Come to think of it, I would first consider creating a 'cctv' user that owns
the cameras and storage directories, and files and only do anything as root
if absolutely necessary.
You can run 'sudo -g [group] ...', so no need to go near root.
Running any kind of script sudo'd is a bad idea,
I'm sure this question is as old as time, but what is the best way to
gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk
v2.18.9, on RHEL6.)
Ta,
G.
gmotion
PyGTK desktop GUI for Motion (software motion detector)
http://code.google.com/p/gmotion/
--
tomes.
G.
On 16 February 2011 22:45, Emile van Sebille em...@fenx.com wrote:
On 2/16/2011 1:26 PM GSO said...
I'm sure this question is as old as time, but what is the best way to
gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk
v2.18.9, on RHEL6.)
have root's password
Apols for being a nuisance. I'm normally if anything a web programmer.
It looks like there are set-id functions in the os module. Further I
don't actually need root privileges, just write access to a directory
that a user ordinarily does not have write access to (and preferably
not read). So a
pretty much better off with sudo, or a tiny C wrapper that's so simple
it's hard to get wrong. However, perl's taint feature would be useful
This snippet is about as tiny as it gets in C I think:
#include unistd.h
int main (int argc, char ** argv) {
int err;
char *newenv[] = { NULL };
if
Passing things through sudo(1) is really the only sensible route these
days but even that can be fraught with peril. For something as simple
as, 'Write to a normally restricted area' it's probably no more secure
than an ACL (and potentially way less if you screw up the sudo
configuration).
I essentially don't want to take a risk with a home CCTV prog., so
unless I can persuade a highly skilled Unix programmer to write a
wrapper (which I can't), then I think I'm best sticking with sudo.
--
http://mail.python.org/mailman/listinfo/python-list
16 matches
Mail list logo