Solved

bash script to add user

Posted on 2004-08-30
2
630 Views
Last Modified: 2013-12-16
Hi, I am looking for a linux script that accepts a username and password and runs the commands to add the user in a hardcoded group.
0
Comment
Question by:iqula
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Expert Comment

by:Jase-Coder
ID: 11935029
Hi, what distro are you using because slackware has a script. If you are running slackware type:

adduser

I dont know if it works with other distros of linux
0
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 11939028
use "useradd" command
man useradd

Please have a look at the answer in the following page:

http:Q_20925430.html
http:Q_20409885.html
http:Q_10674741.html
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
RHEL7 - Error installing docker compose 2 219
Nagios 4.0.8 ack_no_sticky=1 not working 7 20
AWS EC2 HTTP & HTTPS 2 120
SMTP log file for IMSVA 5 75
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question