Re: How do I add users using Python scripts on a Linux machine
by Tim Roberts other posts by this author
Jan 3 2007 12:00AM messages near this date
Re: How do I add users using Python scripts on a Linux machine
|
Re: Why does Python never add itself to the Windows path?
"Ramdas" <ramdaz@[...].com> wrote:
>
> I need to add users from a web interface for a web server, which runs
> only Python. I need to add users, set quotas and in future even look at
> managing ip tables to limit bandwidth.
>
> I know os.system(), but this has to be done through a form entry
> through a web interface.
>
> Anyways thanks, do advise if there more pythonic solutions
os.system is perfectly Pythonic, and can be executed from a CGI script. The
challenge is becoming root, which is necessary to do what you ask. You can
write a simple C program that is setuid root that calls your script for
you.
--
Tim Roberts, timr@[...].com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Thread:
Piet van Oostrum
Lawrence D'Oliveiro
Piet van Oostrum
Lawrence D'Oliveiro
Piet van Oostrum
Garylinux@Gmail.Com
Sebastian 'lunar' Wiesner
Ivan Voras
Sebastian 'lunar' Wiesner
Tim Roberts
|