Link to home
Start Free TrialLog in
Avatar of Sabian
Sabian

asked on

Sendmail and Proftpd mysql help

Hi everyone. I need help to use a mysql DB to store the user and pass of the mail and ftp account.

Im using RedHat 7.3

Thanks
Avatar of majorwoo
majorwoo

you just want to make a databse with their name/password so that you can retrieve them in case they lose it or something?
Avatar of Sabian

ASKER

yes
to create an admin panel to add some mail and ftp account
what do you know about databases? all you have to do is make the table and insert the data..  I am not sure what to describe here, what do you want help with?
Avatar of Sabian

ASKER

I want to store, the /etc/passwd into a MySQL DB with the passwd password. I`ll have an admin panel in php to create some mail account and ftp account.
http://www.mysql.com/documentation/mysql/bychapter/index.html

you can get the rpm from www.rpmfind.net

if you want specific help with a certain part let me know
Avatar of Sabian

ASKER

humm its the mysql how to... i dont think i`ll find how to put the passwd into a mysql db..
Avatar of Sabian

ASKER

humm its the mysql how to... i dont think i`ll find how to put the passwd into a mysql db..
do you know how to make a database?
you can store the passwd file in there..

do you want a script to insert it or what?

The password file is encrypted, so if you store it and they lose thier password you cant give it back to them..
Avatar of Sabian

ASKER

yes i know how to creat a DB. I just dont know how to store the pass and user into the DB.

in which file the password is encrypted?
ASKER CERTIFIED SOLUTION
Avatar of majorwoo
majorwoo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sabian

ASKER

ok tx i`ll see.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh, the ideea is that ftp and mail users should have (almost) nothing to do with the system accounts.
Avatar of Sabian

ASKER

ftp and mail use actualy the same account. Depend if i creat pop account only. The user list is on /etc/passwd. I want to put all the user and pass into mysql
It's a little bit difficult to use a db instead of /etc/passwd. You can use db for ftp and mail accounts though, if that's what you want.

Actaully what do you want to do ?
Avatar of Sabian

ASKER

yes i want to create an admin panel for my client that can add mail account itself
Sabian:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.