LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-18-2007, 09:14 AM   #1
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Rep: Reputation: 31
Add new account to Vpopmail via web form


Hi,

I have created a form that allows users to self-signup for an email account on my qmail/vpopmail server using PHP.

When the form is submitted, I run the command:

PHP Code:
exec("sudo -u vpopmail /home/vpopmail/bin/vadduser $email $passwd"
For this to work, I added the following line to the sudoers file:

apache ALL=(vpopmail) NOPASSWD: /home/vpopmail/bin/vadduser

Unfortunately, the user doesn't get added after the form is submitted.

What am I doing wrong?

Also, does vpopmail have log files? I can't seem to find them.

Is there a different way of adding a new email account via a web form?

TIA.
 
Old 11-18-2007, 11:13 AM   #2
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Original Poster
Rep: Reputation: 31
After 2 days of struggling with this problem, and trying all kinds of workarounds, I finally found out that my sudoers file contains a config option - requiretty.

After commenting this out, things started to work as expected.

I hope this helps someone.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: New Firefox Add-On Automates All Web Surfing and Form Filling LXer Syndicated Linux News 0 12-07-2006 03:54 AM
qmail/vpopmail not putting mails in /home/vpopmail/domain/$USER/Maildir kikola Slackware 0 10-10-2006 08:52 AM
qmail web account registration form yyahmee Linux - Software 2 01-20-2006 07:16 AM
vpopmail: rename an account? Hackiller Linux - Software 0 12-02-2004 05:42 AM
Add FTP User Via Web Form alanpollenz Linux - General 2 05-28-2004 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration