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 application .... exported from zope2.8.1 ,python-2.3.4-11,mysql-3.23.58-13 and Linux 2.6.9-1.667 .... //////////////////////// now i hope that , problem defination is very clear and open...... /////////////////// On 11/7/05, Tino Wildenhain <tino@wildenhain.de> wrote:
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 <tino@wildenhain.de> wrote: ajit mote schrieb:
useradd ...
On 11/3/05, *Andreas Jung* <lists@andreas-jung.com <mailto:lists@andreas-jung.com>> 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 it through zope as external script (with all permission) it's not working and returning 256 without giving any error...
as root, su zopeuser first and then try your script. Zopeuser meaning the user account your zope runs.
Again, double and tripple check if you secured this application in any way before opening it to the web.
Try harder :-)
Seriously, what should we do to help you? If something isn't working as expected, give us the code you try, the environment and exact error messages, preferably tracebacks.