LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-01-2006, 05:05 PM   #1
donJulio
LQ Newbie
 
Registered: Sep 2005
Location: California
Distribution: Slackware
Posts: 23

Rep: Reputation: 15
I'm having trouble setting up a new user, especially the password


I have a new Slackware 10.2 install and to make it a little different than the last one, I mounted /usr/local and /home on separate partitions.

After loggin in as root, I ran:
#useradd -ppassword donjulio

The problem was two-fold:
/home/donjulio was never created & I couldn't login with the password. I even used su to become donjulio as root and tried using passwd to change the password to know avail.

I read the man adduser and after deleting donjulio, did this:
#useradd -m donjulio
and
#useradd -m -ppassword donjulio

Both seem to create the home directory now, solving problem one, but the passwords still don't seem to work, so I'm still stuck logging in as root in order to become a regular user, which is weird.

Am I messing up the command? Is there some file somewhere that I can edit as root to change the password?
 
Old 07-01-2006, 05:07 PM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Alternatively, you can run the adduser script, which prompts for everything. It's a little simpler if the man page doesn't help you with useradd.
 
Old 07-01-2006, 05:08 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
The password entered with the -p switch needs to be encrypted. Have you tried not assigning the password with useradd and instead using the passwd command (as root)?
 
Old 07-01-2006, 05:10 PM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,773

Rep: Reputation: 197Reputation: 197
http://www.slackbook.org/
http://linuxcommand.org/man_pages/
http://linuxcommand.org/man_pages/useradd8.html

Useradd usually asks you for name and passwword and group etc. one line at a time.
 
Old 07-01-2006, 05:16 PM   #5
donJulio
LQ Newbie
 
Registered: Sep 2005
Location: California
Distribution: Slackware
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gilead
The password entered with the -p switch needs to be encrypted. Have you tried not assigning the password with useradd and instead using the passwd command (as root)?
I'll try that, as well as the adduser script. thanks!
 
Old 07-01-2006, 06:10 PM   #6
donJulio
LQ Newbie
 
Registered: Sep 2005
Location: California
Distribution: Slackware
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Randux
Alternatively, you can run the adduser script, which prompts for everything. It's a little simpler if the man page doesn't help you with useradd.
This did it! I used it before, but didn't even remember. Thanks!
 
Old 07-02-2006, 07:24 AM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
You're welcome. Glad you got it working.
 
Old 07-02-2006, 01:13 PM   #8
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
Quote:
#useradd -ppassword donjulio
Quote:
#useradd -m -ppassword donjulio
I think these 2 should be:
Quote:
#useradd -p password donjulio
Quote:
#useradd -m -p password donjulio
With space between the switches and argument, right ?
 
Old 08-09-2006, 03:59 AM   #9
arnig
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
hi all ,
i have problem changing a passwd to user
it say :
passwd: Authentication token manipulation error
and goes back to prompt .
i'm the root user and running the passwd username command .
is there anyone who has any similar situation ?
does anyone know how to solve this ?
thanks
 
  


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
setting setting umask for apache user only....how?..plz help mickyman Linux - General 0 05-08-2006 05:37 AM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 10:59 AM
Samba -- XP user can log in to shares but smbclient user always gets password errors ejoe Linux - Software 3 04-18-2005 11:55 AM
what is the command to make a user change their password after creating a new user? naweenio Linux - Newbie 7 01-05-2005 08:07 AM
setting user password to mysql!! baby_linu Programming 3 03-09-2004 11:59 AM


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