LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to edit PAM DB of VSFTPD (..add user, delete user, change user password ) (http://www.linuxquestions.org/questions/linux-server-73/how-to-edit-pam-db-of-vsftpd-add-user-delete-user-change-user-password-4175429825/)

arun5002 10-01-2012 02:15 AM

How to edit PAM DB of VSFTPD (..add user, delete user, change user password )
 
Hi

I followed the below link to configure vsftpd virtual user configuration using pam db
But i have few problem how can i add modify the password & add new user to vsftpd-virtual-user.db.

problem facing off

Whether i have to drop the old vsftpd-virtual-user.db and create a new vsftpd-virtual-user.db

how can i migrate all users in my old vsftpd-virtual-user.db to new vsftpd-virtual-user.db file

http://www.cyberciti.biz/tips/centos...ual-users.html

unSpawn 10-02-2012 08:49 AM

Quote:

Originally Posted by arun5002 (Post 4793710)
how can i add modify the password & add new user to vsftpd-virtual-user.db.

Both actions require you to rebuild the database as far as I'm aware.


Quote:

Originally Posted by arun5002 (Post 4793710)
how can i migrate all users in my old vsftpd-virtual-user.db to new vsftpd-virtual-user.db file

I don't know of any other way than just dumping the database with 'db_dump -p' and parsing the output. It will have user names and logins on alternating lines just like in the original input file.


All times are GMT -5. The time now is 11:22 AM.