LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-08-2003, 12:56 AM   #1
Iguana
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.1
Posts: 23

Rep: Reputation: 15
How to add a normal user?


I'm running Slackware 9.1 as root. I can't figure out how to add a normal user.

So far, I've tried
Quote:
useradd iguana
and then
Quote:
passwd iguana XXX
.

Unfortunately, when I login to my machine and type startx as the non-root user, a timeout of some kind won't allow X to load. Can anyone please explain how to properly add a user?
 
Old 11-08-2003, 01:14 AM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Try "adduser" instead of "useradd". It's a wrapper of sorts that uses useradd, but it's a bit more intuitive.
 
Old 11-08-2003, 02:01 AM   #3
Iguana
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.1
Posts: 23

Original Poster
Rep: Reputation: 15
That worked. Thanks.
 
Old 06-11-2004, 11:53 PM   #4
MunCH
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Red Hat 9, Slackware
Posts: 79

Rep: Reputation: 15
OK I just added a user, with useradd, how do I give him a password to login?

Cheers

MunCH
 
Old 06-12-2004, 12:02 AM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
As the post above said, use
Code:
adduser
It is better to use that useradd

For more information
Code:
man adduser
man useradd

EDIT:
BTW, on some system useradd is a symbolic link to adduser. On others it is a seperate program. The man pages give the details.

To add a password to an account use the passwd command

Last edited by darthtux; 06-12-2004 at 12:05 AM.
 
Old 06-12-2004, 12:04 AM   #6
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
Munch, per the above: use adduser, it will then ask you for a password. If you use useradd you will have to setup the password with passwd, you will have to set up the home directory yourself.
 
Old 06-12-2004, 12:17 AM   #7
MunCH
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Red Hat 9, Slackware
Posts: 79

Rep: Reputation: 15
thanks guys, there doesnt seem to be a man page for adduser, thing is I added my usual "user"account name with useradd and didnt give him a password with , doing the same with useadd wont let me use that name, which I would prefer(one less password to remember lol), is there a text file I can edit for this, ot a command? I found password file in /etc, but it doesnt appear clear.

Sorry to be a newbie pain again

MunCH

PS: never mind it wors now, cheers all...

Last edited by MunCH; 06-12-2004 at 12:42 AM.
 
Old 06-12-2004, 01:05 AM   #8
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
To remove a user, you would do:

Code:
userdel -r username
That will remove the user and its "/home/username" directory.
 
Old 06-12-2004, 04:49 AM   #9
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
useradd -m -s /bin/bash -G disk,user,etc name

name is the name of the user you want to add

passwd name
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM
Running super user commands as normal user mickyg Linux - Security 5 10-14-2005 07:25 PM
add path to normal user acbenny Linux - General 6 08-07-2004 10:24 PM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM
normal user = super user jayakrishnan Linux - General 4 03-19-2002 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:29 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
Open Source Consulting | Domain Registration