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 Accounts Outside of Cpanel

Discussion in 'General Discussion' started by jthomas, Jun 18, 2007.

  1. jthomas

    jthomas Active Member

    Joined:
    Jul 31, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I was installing another application on my server and wanted to know how I would go about creating an ftp user outside of cpanel that only has access to a specific folder on the server. Is that something that is easy to setup and how. I would want:

    newuser to only have access to /opt/application/


    My server is using pureftp. Please advise.

    thank You
     
  2. jthomas

    jthomas Active Member

    Joined:
    Jul 31, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    bumpity bump
     
  3. OoteR

    OoteR Member

    Joined:
    Jun 12, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    To add a new user, use the following syntax:

    pure-pw useradd <login> [-f <passwd file>] -u <uid> [-g <gid>]
    -D/-d <home directory> [-c <gecos>]
    [-t <download bandwidth>] [-T <upload bandwidth>]
    [-n <max number of files>] [-N <max Mbytes>]
    [-q <upload ratio>] [-Q <download ratio>]
    [-r <allow client host>[/<mask>][,<allow client host>[/<mask>]]...]
    [-R <deny client host>[/<mask>][,<deny client host>[/<mask>]]...]
    [-i <allow local host>[/<mask>][,<allow client host>[/<mask>]]...]
    [-I <deny local host>[/<mask>][,<deny local host>[/<mask>]]...]
    [-y <max number of concurrent sessions>]
    [-z <hhmm>-<hhmm>] [-m]

    Let's create "joe", whoose home directory will be /home/ftpusers/joe . The
    system account associated with "joe" is "ftpusers".

    pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe

    Joe's password is asked twice.

    With -d, joe will be chrooted. If you want to give joe access to the whole
    filesystem, use -D instead of -d.

    You don't need to create /home/ftpusers/joe if you run pure-ftpd with the
    -j (--createhome) switch. With that switch, home directories will
    automatically be created when users will log in for the first time.

    SOURCE: http://download.pureftpd.org/pub/pure-ftpd/doc/README.Virtual-Users
     
Loading...

Share This Page