Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-01-2006, 04:05 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2005
Location: California
Distribution: Slackware
Posts: 23
Rep:
|
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?
|
|
|
|
07-01-2006, 04:07 PM
|
#2
|
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
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.
|
|
|
|
07-01-2006, 04:08 PM
|
#3
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,084
Rep: 
|
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)?
|
|
|
|
07-01-2006, 04:10 PM
|
#4
|
|
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,648
Rep: 
|
|
|
|
|
07-01-2006, 04:16 PM
|
#5
|
|
LQ Newbie
Registered: Sep 2005
Location: California
Distribution: Slackware
Posts: 23
Original Poster
Rep:
|
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!
|
|
|
|
07-01-2006, 05:10 PM
|
#6
|
|
LQ Newbie
Registered: Sep 2005
Location: California
Distribution: Slackware
Posts: 23
Original Poster
Rep:
|
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!
|
|
|
|
07-02-2006, 06:24 AM
|
#7
|
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
You're welcome. Glad you got it working.
|
|
|
|
07-02-2006, 12:13 PM
|
#8
|
|
Member
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360
Rep:
|
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 ?
|
|
|
|
08-09-2006, 02:59 AM
|
#9
|
|
LQ Newbie
Registered: Jan 2006
Posts: 2
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|