Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    69

    Default create pureftpd user

    hello

    i use cPanel and i've switched from proftpd to pureftpd, but i can't find how to create a pure-ftpd user without using cPanel

    i found that the /etc/proftpd/ dir is being modified (probably by cPanel), since some files last modified date is tomorrow... so maybe the pure-ftpd just import proftpd config?

    thanks

  2. #2
    Member
    Join Date
    Sep 2003
    Posts
    69

    Default

    maybe i can use pure-pw useradd
    ?

    or it will conflict?

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    4

    Default

    i've been working on this too.

    it seems that cpanel uses a hodge podge of pure-ftp and pro-ftp configs

    pure-ftp command line calls reveal that there is no password file for it so i doubt you can use it the way it was intended.
    # pure-pw list
    Unable to open the passwd file: No such file or directory

    # pure-pw show grig
    Unable to open the passwd file: No such file or directory
    Unable to fetch info about user [grig] in file [/etc/pureftpd.passwd]


    i wish the cpanel ftp stuff was documented correctly somewhere

    i need to find the file that stores the passwords and directories so i can maintain them with my own scripts
    Last edited by grig; 06-13-2006 at 03:58 PM.

  4. #4
    Registered User
    Join Date
    Jun 2006
    Posts
    4

    Default

    i case someones reading this:

    - I am using pure-ftp

    - in /etc/proftpd/passwd.vhosts you can find the users created but this doesn't seem to be controlling the behavior of ftp. i can remove a user from the passwd.vhosts and still log in with that user (after restarting the ftp services)

    - i've seen mention on these forums of the /etc/proftpd.conf file (mine is blank but there)

    WHERE ARE THE PASSWORDS AND PATHS DEFINED!?!?
    Last edited by grig; 06-13-2006 at 01:18 PM.

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    4

    Default more hints?!?

    when running the scripts for restarting FTP, i noticed they're all the same command line script

    Starting pure-authd:
    # /scripts/restartsrv_pureftpd
    Starting pure-config.pl: Running: /usr/sbin/pure-ftpd -O clf:/var/log/xferlog -lextauth:/var/run/ftpd.sock --daemonize -A -c50 -B -C8 -D -fftp -H -I15 -lextauth:/var/run/ftpd.sock -L2000:8 -m4 -s -U133:022 -u100 -Oxferlog:/usr/local/apache/domlogs/ftpxferlog -k99 -Z -Y1
    [ OK ]
    Starting pure-authd:
    # /scripts/restartsrv_proftpd
    Starting pure-config.pl: Running: /usr/sbin/pure-ftpd -O clf:/var/log/xferlog -lextauth:/var/run/ftpd.sock --daemonize -A -c50 -B -C8 -D -fftp -H -I15 -lextauth:/var/run/ftpd.sock -L2000:8 -m4 -s -U133:022 -u100 -Oxferlog:/usr/local/apache/domlogs/ftpxferlog -k99 -Z -Y1
    [ OK ]
    Starting pure-authd:
    # /scripts/restartsrv_ftpserver
    Starting pure-config.pl: Running: /usr/sbin/pure-ftpd -O clf:/var/log/xferlog -lextauth:/var/run/ftpd.sock --daemonize -A -c50 -B -C8 -D -fftp -H -I15 -lextauth:/var/run/ftpd.sock -L2000:8 -m4 -s -U133:022 -u100 -Oxferlog:/usr/local/apache/domlogs/ftpxferlog -k99 -Z -Y1
    Last edited by grig; 06-13-2006 at 01:17 PM.

  6. #6
    Registered User
    Join Date
    Jun 2006
    Posts
    4

    Red face

    A solution!

    Yay!

    - root access via shell is needed (you will not see this file via FTP - since FTP is a jailed account)

    -the password file is in /etc/proftpd/ it will be the name of the virtual host

    - you will need to generate the right md5 password, this can be done with:
    /scripts/md5crypt

    - you will need to create your own folders

    - you don't need to restart any services after making the changes


    (I have no idea if cpanel will clobber this or not) for safety, update the other password file i mentioned above)

    hope this helps! Now I can write my own web app to create accounts and i no longer have to use public_html as the root (i can't believe this is the default!)

    p.s. always back up your files before you mess with them
    Last edited by grig; 06-13-2006 at 07:50 PM.

  7. #7
    Member
    Join Date
    Aug 2003
    Posts
    27

    Default

    Have you tried setting up/down bandwith or changing the quota using this? I make changes yet nothing happens.

    [/etc/proftpd]# pure-pw show wvstreets -f chilz59

    Login : wvstreets
    Password : *******
    UID : 32003 (chilz59)
    GID : 504 (chilz59)
    Directory : /home/chilz59/public_html/wvstreets
    Full name : chilz59
    Download bandwidth : 5 Kb (enabled)
    Upload bandwidth : 5 Kb (enabled)
    Max files : 0 (unlimited)
    Max size : 0 Mb (unlimited)
    Ratio : 0:0 (unlimited:unlimited)
    Allowed local IPs :
    Denied local IPs :
    Allowed client IPs :
    Denied client IPs :
    Time restrictions : 0000-0000 (unlimited)
    Max sim sessions : 0 (unlimited)

    I used:

    pure-pw usermod wvstreets -t 5 -T 5 -f chilz59


    Yet nothing happens.

    Here is the line from the "chilz59" file.

    wvstreets:******:32003:504:chilz59:/home/chilz59/public_html/wvstreets:5120:5120::::::::::

  8. #8
    Member
    Join Date
    Aug 2003
    Posts
    27

    Default

    Ok scratch all that. I'm going to setup another standalone ftp that will work properly
    I can't believe I pay for this crap.

Similar Threads & Tags
Similar threads

  1. create user ftp??
    By AngleOfDeath in forum New User Questions
    Replies: 3
    Last Post: 08-21-2007, 08:34 AM
  2. Can't create user
    By wakaka in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-25-2007, 02:09 AM
  3. Unable to create new User
    By cyexx in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 11-08-2005, 10:14 PM
  4. Any way to create another user who has access to an existing user's CPanel?
    By brianteeter in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 09-17-2004, 12:09 PM
  5. PureFTPd: Does CPanel use a custom build of PureFTPd?
    By trparky in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-26-2004, 11:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube