LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

This blog is just my notes from my experience with Linux and especially Slackware.

There is no garantee that it will work with your system.

They are published just in case they could help someone (and help me not to forget how I did some tricks) ;-)
Old

How to add a user

Posted 10-18-2010 at 08:14 AM by T0sh1r0 (Just a few notes...)
Updated 10-18-2010 at 08:39 AM by T0sh1r0

There are 2 ways to add a user via the command line:
1. useradd - the pure command line way!
Let's add myself on the system:
Code:
useradd -m -G users,wheel,audio -s /bin/bash T0hs1r0
-m creates the home directory
-G adds my user to a list of groups
-s provides the default shell for my user
To set the password for the user:
Code:
passwd T0sh1r0
Code:
useradd -D
will display the current default values and
Code:
useradd -D [options]
will update the default values.

2. adduser...
Member
Views 11417 Comments 4 T0sh1r0 is offline

  



All times are GMT -5. The time now is 03:55 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration