|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Hi,
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) That's it. Are there any examples available of how to do this? |
|
#2
|
|||
|
|||
|
Hello there, 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, Mike ------------------ Envex Developments Your CGI Script Specialists http://www.envex.net/ |
|
#3
|
|||
|
|||
|
Hi,
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Run program automatically |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|