The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FTP Account

Discussion in 'General Discussion' started by carlosfusion, Feb 9, 2010.

  1. carlosfusion

    carlosfusion Member

    Joined:
    Feb 9, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Im using pure FTP, but cpanel looks like still using /etc/proftpd/passwd.vhosts, well that is not the problem, my question is:

    How i can create an account with access only to /backup drive, i meant i dont want create an account via cpanel, i need only the FTP access, i try with /etc/proftpd/passwd.vhosts but no work.

    Can some help me with this, i need ftp account for setup remote backups in the other server, with access only to /backup.

    Thanks for ur help
     
  2. nimrodx

    nimrodx Active Member

    Joined:
    Jul 24, 2005
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Edinburgh, Scotland
    I would go for the simple method:

    useradd -d /backup username

    -d option allows you to specify the users home directory (by default it's usually /home/username)

    Having it setup as an actual system user will give you greater control over their actions and better logging, too!
     
  3. carlosfusion

    carlosfusion Member

    Joined:
    Feb 9, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    mm

    Yea i know, but the useradd command not create ftp accounts, just create system user i meant that command will add the user for ssh access only, not for ftp access.

    Thanks anyway for the help.
     
  4. hostingtech

    hostingtech Member

    Joined:
    Feb 4, 2010
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    If you follow the path of adding a system user , then you can do below to allow them to use ftp:

    edit /etc/pure-ftpd.conf and and change :

    --
    # If you want simple Unix (/etc/passwd) authentication, uncomment this

    # UnixAuthentication yes
    --

    to

    --
    # If you want simple Unix (/etc/passwd) authentication, uncomment this

    UnixAuthentication yes
    --

    This should allow system users the ftp access.
     
  5. carlosfusion

    carlosfusion Member

    Joined:
    Feb 9, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    for example

    That will allow ftp access to all system users and can be dangerous for ftp brute force attacks, not exists anyway for only add one user to /backup drive


    Thanks alot for ur reply.
     
Loading...

Share This Page