Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:54:05+00:00 2026-06-16T01:54:05+00:00

is this task possible on ubuntu? I have managed to create vhost via php,

  • 0

is this task possible on ubuntu?

I have managed to create vhost via php, I need to create ftp user via php. We are trying to assign a specific directory to internal user who created account via web registration.

I have done this on windows by using filezilla server, where xml can be edited and refresh can be called via php. I need to replicate this for linux.

Thanks

Update:
joe:$1$LX/3.F60$bYdYwsQOYIaWq.Ko.hfI3.:500:101::/home/ftpusers/joe/./::::::1000:10485760::::::

This is the file passwd, well i tried to add another user following the above format, it works, however the same password hash doesn’t work for second account.

I need to get to able to set it password as they specify or without any password. How would I achieve either one of that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:54:06+00:00Added an answer on June 16, 2026 at 1:54 am

    Install PureFTPD by running from commandline:

    sudo apt-get install pure-ftpd
    

    Then follow the directions on the Ubuntu documentation page for setting up the group, folders, etc:

    • https://help.ubuntu.com/community/PureFTP

    This is the command that will create a new user however it would be difficult to pass the passwords to the commandline:

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

    So it would be best to create one starting user to generate the users config file located in /etc/pure-ftpd/ Since you said this is for internal use and you did not really care about security you can change the permissions of the file so you can edit it with PHP. Check out it’s format and just have PHP add a new user section to it with the appropriate values. If I recall it is an XML file so using PHP’s XML or DOM functions would work great with it.


    Update In Regards To Below Comments:

    According to PureFTPD:

    Passwords are hashed with the best one-way hash function your system
    supports. Hashes are tried in this order: Blowfish, MD5, multiple DES,
    simple DES.

    Since your string starts with $1 which is for crypt() using MD5 that is what it ended up using. To get a password encrypted do this:

    echo crypt('YOUR_PASSWORD', '$1$LX/3.F60$');
    

    The $1 specifies to use the MD5 hash as that is what your system defaulted to, the $LX/3.F60$ part inside the $’s is your salt.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to find anything that may help with this task: I have a
I am currently trying to find a solution to this task. Essentially I have
Is it possible to achieve this task with a single MySQL query? Table urls
Is it possible start a new thread within an Async task? Something like this:
I have this task for the project with 4 nested subprojects using Maven: For
Please explain what this task is about? Create a generic linked list class that
what's the best way to accomplish this task? (new to sharepoint) Do we need
I have had no luck with this task so far so grateful for any
I have a task in Python and i run this task for first time
I'm becoming mad trying to figure out how to resolve this task. My goal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.