[Zope] useradd command in Zope

Chris Withers chris at simplistix.co.uk
Tue Nov 8 11:49:04 EST 2005


ajit mote wrote:
> command="/usr/sbin/adduser -p "+password+" "+ userName
> return os.system(command)

You are going to get yourself into a world of pain.

os.system isn't the right thing to use here due to its lack of output 
redirection.

Calling adduser like that is a really big hole in your system's security.

Adding in sudo in there will make it even worse ;-)

Seriously, I don't mean this is a nasty way, but you have neither the 
skill not the experience to attempt the development of the application 
you are trying to develop. Give up, or pay someone who knows better to 
do it for you :-S

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list