LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2004, 08:31 AM   #1
Daredevil
LQ Newbie
 
Registered: Feb 2004
Posts: 17

Rep: Reputation: 0
adding a user in the command line


Hey guys,

I need help, can u send me a link iwht the correct sytax for adding a new user? Or someone just tell me how. I'm going to buy the redhat linux 9 bible tonght.


Any help?
Thanks,
Daredevil
 
Old 02-27-2004, 08:45 AM   #2
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
useradd. Type "man useradd" for more details.

And welcome to LinuxQuestions.org

Baldrick
 
Old 02-27-2004, 08:47 AM   #3
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
see these 2 links:
http://www.zevils.com/cgi-bin/man/ma...adduser.conf+5
http://www.zevils.com/cgi-bin/man/man2html?adduser+8
 
Old 02-27-2004, 09:15 AM   #4
Daredevil
LQ Newbie
 
Registered: Feb 2004
Posts: 17

Original Poster
Rep: Reputation: 0
This is what i need to do
I need to create a username of phpuser and the pass of php user, everytime i try this it always kicks back errors.


can someone give me an example?


Thanks,
Daredevil
 
Old 02-27-2004, 09:33 AM   #5
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
A typical example would be:
adduser --shell /bin/bash --uid 1000 phpuser
and if you don't want to create /home/phpuser directory, use --no-create-home option
 
Old 02-27-2004, 12:56 PM   #6
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
If you're just looking to simply add a user, using the command do the following as root:

Code:
useradd phpguy
This will add the user "phpguy". This can be changed to whatever you want the username to be. To set the password for "phpguy"

Code:
passwd phpguy
This will prompt you for a new password for "phpguy" and ask you to confirm it.

Hope this helps.

Tap

P.S> That RH9 Linux Bible is an excellent book. I paid $80 for it and have never regretted it, and it is a wonderful buy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding files through command line browser Linux - General 6 05-21-2005 06:53 PM
Adding users via command Line AmdMhz Linux - Software 4 10-31-2004 01:29 PM
adding a gnome applet to the panel from the command line meonkeys Programming 1 04-23-2004 04:35 AM
adding shortcuts for command line hamish Linux - Newbie 6 02-05-2004 07:58 PM
adding command line to starting coltranefawz Linux - Software 1 07-02-2003 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration