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
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
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
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
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
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
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
--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
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
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
10 matches
Mail list logo