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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-01-2006, 05: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, 05: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, 05:08 PM
|
#3
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
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, 05:10 PM
|
#4
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,341
|
|
|
|
07-01-2006, 05: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, 06: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, 07: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, 01:13 PM
|
#8
|
Member
Registered: Nov 2003
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, 03: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
|
|
|
All times are GMT -5. The time now is 10:18 AM.
|
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
|
|