Easy way to add FTP account?
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By Copper

Thread: Easy way to add FTP account?

  1. #1

    Join Date
    Aug 2011
    Location
    Sweden
    Posts
    90

    Default Easy way to add FTP account?

    So i have on my server FTP and one account for it.
    But what about if i wanted to add a second FTP account?
    Now my FTP account is under /home/myname/ and how do i do to add second account under a new directory /home/account2/...



    Is there any simple or easy way for it ? command or something to write?

    Im not going to have the second FTP for rutorrent or something... just so i can paste in my downloads there so a friend of mine can get them. and not via my ftp account, by his own....

    I think it was proFTPd im using.
    Thanks!
    Last edited by G4m3N3rd; November 7th, 2011 at 06:50 AM.


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Join Date
    Jun 2011
    Posts
    191

    Default

    I would suggest creating a 2nd user, symlink your home-dir to his ftp-dir and use ProFTPD to give him read-only?

  4. #3

    Join Date
    Apr 2009
    Location
    WI, USA
    Posts
    623
    Blog Entries
    3

    Default

    adduser new_name_here

    Need help with a seedbox? Jump on IRC and message me!
    Ubuntu 10.04 Seedbox Setup | Upgrading Deluge from Source

  5. #4

    Join Date
    Jun 2011
    Posts
    5,599
    Blog Entries
    1

    Default



    Well there are many ways to do this. You didn't mention what *nix version you were using. But something similar to the following would work. Keep in mind that good practice would also include adding extra security or symbolic links as noted above.

    # Create a FTP user group. eg: ftpaccounts
    $ /usr/sbin/groupadd ftpaccounts

    # Add a new user to this group, and set the default path of that user to /home/user/
    $ /usr/sbin/adduser -g ftpaccounts -d /home/user/account2

    #Set a password for the newley created user
    $ passwd account2

    # set ownership of /home/user to the account2 and ftpaccounts
    $ chown account2:ftpaccounts /home/user

    # Give Read/Write access to account2 and all members in ftpaccounts
    $ chmod 775 /home/user

    # Edit /etc/proftpd/proftpd.conf file and make sure 'local_enable=YES' is enabled i.e. uncommented

    # Restart the proftpd service
    $ /etc/init.d/proftpd restart


    Magister likes this.
    Fortune and love favour the brave .-. Ovid ....

Similar Threads

  1. Replies: 6
    Last Post: September 16th, 2011, 11:03 PM
  2. Easy Way To Delete Win7 Product Key From Registry
    By alphaB11 in forum Operating Systems
    Replies: 4
    Last Post: January 8th, 2011, 02:03 AM
  3. Easy way to install Windows 7 and Vista themes
    By Ra.1 in forum Operating Systems
    Replies: 1
    Last Post: April 11th, 2010, 07:34 AM
  4. A Very Easy Way to Tilt Shift
    By Hundreds in forum Graphic Design
    Replies: 9
    Last Post: November 12th, 2009, 04:23 PM
  5. Replies: 0
    Last Post: August 13th, 2009, 09:50 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •