Results 1 to 5 of 5

How to create FTP user vis SSH ?

This is a discussion on How to create FTP user vis SSH ? within the Web & Server Administration forums, part of the Web Designing & Development category; I want to create ftp user vis ssh, im using pure-ftpd ftp sever on centos 6...

  1. #1
    Member
    Join Date
    Apr 2018
    Posts
    94

    Default How to create FTP user vis SSH ?

    I want to create ftp user vis ssh, im using pure-ftpd ftp sever on centos 6

  2. #2
    Member
    Join Date
    May 2017
    Posts
    74

    Default Re: How to create FTP user vis SSH ?

    Depends on the OS and what FTP server software it's running. So the first step is getting the exact name and version of both of those things so that you know what to search for.

  3. #3
    Member
    Join Date
    Apr 2018
    Posts
    94

    Default Re: How to create FTP user vis SSH ?

    Os has setup with pure-ftpd ftp server which comes with cPanel/WHM panel

  4. #4
    Senior Member
    Join Date
    Mar 2018
    Location
    Australia
    Posts
    475

    Default Re: How to create FTP user vis SSH ?

    Log into your server via SSH or FTP as the main FTP/domain user. Create the desired home directory for your new FTP user. Log into your server via SSH as the root user. Check your /etc/password file for the user ID (UID) of your main domain user.

  5. #5
    Senior Member hostechsupport's Avatar
    Join Date
    Feb 2017
    Posts
    417

    Default Re: How to create FTP user vis SSH ?

    To create FTP user through SSH, do follow the below mentioned steps:


    1. Login as root through SSH.


    2. Next add the user account you want using the 'useradd' command


    useradd <username>


    3. Now create a special group for that user.


    groupadd <groupname>


    4. Now to add the user to the group


    gpasswd -a <username> <groupname>


    These commands are non-standard but available on most popular distributions.


    If not works, then you can try editing /etc/group using a text editor.


    5. Change the group ownership of the special directory to that group.


    chgrp -R groupname /path/to/your/web/directory


    6. Enable write permissions


    chmod -R g+rw /path/to/your/web/directory
    HostechSupport
    Best Linux/ Windows Server Management
    24x7 Skype: hostechsupportindia