Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old November 19th, 2000, 04:38 PM
Cooliooo Cooliooo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 1 Cooliooo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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?


Reply With Quote
  #2  
Old November 19th, 2000, 07:44 PM
Envex Envex is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 4 Envex User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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/

Reply With Quote
  #3  
Old November 20th, 2000, 08:01 AM
Cooliooo Cooliooo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 1 Cooliooo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Run program automatically


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway