LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2005, 03:51 AM   #1
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Rep: Reputation: 30
Question AddingUser in terminal


G'Day there,I am having trouble finding a post anywhere at all where I can find some proper info on how to add a new user using terminal and the proper commands to use , as 4 some reason I added a user through Kuser and it doesnt seem to recognise it when trying to login , I tried the term adduser on its own and just get messages that dont seem to lead anywhere, I,m using gentoo and I tried searching through their forums and tips etc & couldn't find a answer believe it or not, I might not of been using the right search terms but I tried a few , AnyWay does anyone know the proper commands for adding a new user through terminal or console with linux, I had actually did it once before a very long time ago but have now forgotten,I am hoping its the same for all linux apps but could be wrong?Thanks
 
Old 05-21-2005, 04:11 AM   #2
kimx
Member
 
Registered: Dec 2004
Location: Denmark
Distribution: Yoper 2.2, Source Mage, Ubuntu 5.04, Slackware 10.1
Posts: 70

Rep: Reputation: 16
You used the right command, you just need to read the man page, but I'll help you, you should do:

Code:
adduser -d /home/"username" -s /bin/bash -g users/user/"username" -G media,audio(whatever you need) "username"
Just replace "username" whit the wanted name and add all the groups the the user should be in after the, what to write after the -g is dependent on your distribution.
 
Old 05-21-2005, 05:29 AM   #3
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
Thanks very much ,that was preety much what I was looking for, & thanks 4 reminding me to look into the man pages before I post as well as have found in the past that alot of answers we need are right on our desktop in different places ,Fanx again,Much Appreciated
 
Old 05-21-2005, 11:29 AM   #4
kimx
Member
 
Registered: Dec 2004
Location: Denmark
Distribution: Yoper 2.2, Source Mage, Ubuntu 5.04, Slackware 10.1
Posts: 70

Rep: Reputation: 16
I forgot to mention that you have to run
Code:
passwd "username"
after you have added the user so that the user are able to login.
 
Old 05-21-2005, 02:40 PM   #5
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
lots of distros have a useradd script as well, that will do it interactively.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
How to run MP3 file thru Terminal in K.D.E or Terminal itz2000 Linux - Newbie 5 08-04-2005 09:49 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:40 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