How do I add users using Python scripts on a Linux machine

Ravi Teja webraviteja at gmail.com
Tue Jan 2 13:18:45 EST 2007


> >
> > How about invoking scripts with SUID root set?
>
> Linux seems to ignore SUID bit on scripts:

Yes. My bad. The work around was to use native launchers. I don't
remember the details. Perhaps with the interpreter embedded to launch
it in-process and to hard code the script paths (or at least a config
file/script pointing to them) for security.

> Anyway, you should definitely think about security issues. Not all
> people out there are friendly...

I agree. SUID is often risky.

Web applications such as webmin that do administrative functions
through a web interface require extra precautions for security such as
restricting access to specific IPs.




More information about the Python-list mailing list