Solved

bash script to add user

Posted on 2004-08-30
2
610 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
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now