On 2009-01-24, Aahz <a...@pythoncraft.com> wrote:
> In article <mailman.7854.1232759225.3487.python-l...@python.org>,
> Linuxguy123  <linuxguy...@gmail.com> wrote:
>>
>>I want to make a python program that I can run as a normal user that
>>changes the permission on some device files.  It will need to ask me for
>>the root password and then run chown as root in order to do this. 
>>
>>How do I accomplish this (easily) ?
>
> The easiest -- really -- is to just make it a root script and run it with
> sudo.  If you're on Ubuntu, that's pretty much the only option (without
> resorting to complicated ways of running sudo) -- the standard Ubuntu
> setup doesn't have a root password.

Though it's easy enough to set the root password, it's not
really the "Ubuntu way"...

-- 
Grant

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to