Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Basicly I would like to create a ftp user called ftpbackup on a Centos 5 server that has WHM/Cpanel. i have root access. do you have any ideea how ?

I tried:
1.useradd
2.Pure-pw useradd
3.editing /etc/proftpd/passwd.vhosts (i know it says PRO ftp but this is where cpanel stores passwords for users i created from the cpanel interface)

authentification mecanism in pureftpd conf is Extauth pureauth ... if it helps you to recognize the prolem.

don't know what happens ....

share|improve this question

2 Answers 2

up vote 1 down vote accepted
/usr/local/cpanel/bin/proftpd_passwd <cpuser> -a <ftpuser>:<password>:<uid>:<gid>:<cpuser>:/home/<cpuser>/public_html/ftp:/sbin/nologin
  • <cpuser> = your cPanel username
  • <uid> = user_id of cPanel user
  • <gid> = group_id of cPanel user
  • <ftpuser> = the user to be used for login for example if ftpuser = ftp then to login use ftp@domain.com
share|improve this answer

You have cPanel, then why do you want to mess-up with cPanel setup. Do it in the cPanel way. ie, simply create a dummy domain in WHM and use it for sole FTP purpose or create an FTP account from inside your cPanel.

If you add/modify users manually, it is not necessary that it will be permanent or will not be overwritten by cPanel in the future.

-$

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.