November 19th, 2000, 04:38 PM
I want to create the option for my clients to create their own e-mail address.
When I do this in Telnet, I have to run the command 'vadduser'
It then asks me for a username, I want to assign this automatically. (1,2,3,4 etc etc)
It then asks me for a password, I want this to be something the user has already given in a form (before the script was run).
It then has to be retyped. Those two things can be done automatically.
It then asks if I want to assign a disk quota (YES) and then asks for the number of megabytes (1)
Are there any examples available of how to do this?
November 19th, 2000, 07:44 PM
Your taking the wrong approach to doing this. It is virtually impossible to make the script run exactly as you want.
However, what you can do is, find out exactly what files are edited when you run vaddduser, then make a script to edit those files.
I'm guessing you just need a script which adds a line to the /etc/passwd file.
Hope that gives you some direction,
Your CGI Script Specialists
November 20th, 2000, 08:01 AM
Thanks for your reply.
I read about an "expect module" so I thought that was what I described.
I don't have access to my /etc/passwd file so I can't change it directly.
The only way to add a user is the vadduser command.