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 6187371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:02:49+00:00 2026-05-24T02:02:49+00:00

I ask for your help to create a script to create a user and

  • 0

I ask for your help to create a script to create a user and a password on 1 click

useradd client1 -M -s /bin/false
passwd client1

To have for instance a new user with:

login: client1 password: test

Is it possible ? and if it is, how please ?

  • 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-05-24T02:02:50+00:00Added an answer on May 24, 2026 at 2:02 am

    Ok I find it :

    First Script create user: (add_user.sh)

    #!/bin/sh
    useradd $1 -M -s /bin/false
    

    Second one create a password or change it:

    #!/bin/sh
    echo "$1:$2" | chpasswd
    

    Do you know how i can call this script from php file ?

    <?php
        Execution (add_user.sh) ? 
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to ask your help on a longstanding issue with php/mysql connections. Every
need ask you about some help. I have web app running in Net 2.0.
I ask for some help/advise. I have a jquery form dialog to collect usr/pwd
I use c#, linq and EF4 I would like ask your help. My question:
We're being really stuck here so I decided to ask your help. Yesterday I've
i would like to ask for your help since I'm having difficulty resolving this
I'm new to windows phone 7 I want to ask for your help in
After a lot of googling, i ask for your help for a problem who
I normally don't ask for help. I have spent 3 plus hours trying to
I'd like to ask your opinion on this. This is a theoretical question. I'm

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.