Re: [Zope] useradd command in Zope

2005-11-08 Thread Chris Withers
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

Re: [Zope] useradd command in Zope

2005-11-07 Thread ajit mote
this is what i tried #External script addUser.py (stored in instance/Extensions folder) import crypt import os def addUser(userName,password): password=crypt.crypt(password,5Ag5zoM9) command=/usr/sbin/adduser -p +password+ + userName return os.system(command) /// attaching the

Re: [Zope] useradd command in Zope

2005-11-07 Thread Tino Wildenhain
ajit mote schrieb: this is what i tried #External script addUser.py (stored in instance/Extensions folder) import crypt import os def addUser(userName,password): password=crypt.crypt(password,5Ag5zoM9) command=/usr/sbin/adduser -p +password+ + userName return

Re: [Zope] useradd command in Zope

2005-11-07 Thread ajit mote
On 11/7/05, Tino Wildenhain [EMAIL PROTECTED] wrote: ajit mote schrieb: this is what i tried #External script addUser.py (stored in instance/Extensions folder) import crypt import os def addUser(userName,password): password=crypt.crypt(password,5Ag5zoM9) command=/usr/sbin/adduser -p

Re: [Zope] useradd command in Zope

2005-11-06 Thread ajit mote
i did the same but still not working.On 11/3/05, Tino Wildenhain [EMAIL PROTECTED] wrote: ajit mote schrieb:useradd ... On 11/3/05, *Andreas Jung* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Look at the sudo command (man sudo). This is basically a non-Zope question. i don't think this

Re: [Zope] useradd command in Zope

2005-11-06 Thread Tino Wildenhain
Am Montag, den 07.11.2005, 09:32 +0530 schrieb ajit mote: i did the same but still not working. On 11/3/05, Tino Wildenhain [EMAIL PROTECTED] wrote: ajit mote schrieb: useradd ... On 11/3/05, *Andreas Jung* [EMAIL PROTECTED] mailto:[EMAIL

[Zope] useradd command in Zope

2005-11-03 Thread ajit mote
Hi , how to use command that require Root privileges like useradd,reading shadow file bca'z iinstallzopeasnon root user now i need to use useradd command in my application ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman

Re: [Zope] useradd command in Zope

2005-11-03 Thread Andreas Jung
--On 3. November 2005 17:06:55 +0530 ajit mote [EMAIL PROTECTED] wrote: Hi , how to use command that require Root privileges like useradd,reading shadow file bca'z i install zope as non root user now i need to use useradd command in my application Look at the sudo command (man

[Zope] useradd command in Zope

2005-11-03 Thread ajit mote
useradd ... On 11/3/05, Andreas Jung [EMAIL PROTECTED] wrote: Look at the sudo command (man sudo). This is basically a non-Zope question. i don't think this is non-zope question bca'z... i am using python script to add user to system which works fine when run outside of zope ... but when i run

Re: [Zope] useradd command in Zope

2005-11-03 Thread Tino Wildenhain
ajit mote schrieb: useradd ... On 11/3/05, *Andreas Jung* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Look at the sudo command (man sudo). This is basically a non-Zope question. i don't think this is non-zope question bca'z... i am using python script to add