#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    1
    Rep Power
    0
    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. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    4
    Rep Power
    0

    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/
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    1
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo