LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-08-2004, 08:19 PM   #1
Talesin
LQ Newbie
 
Registered: Oct 2004
Location: Under your bed
Posts: 1

Rep: Reputation: 0
Command-line 'adduser': password not hashing


(Fedora Core 2, PAM-enabled, shadow passwords enabled)

At the moment I'm trying to set up an automation script, allowing an account to be created and configured with a single command. A friend is starting up a webhosting business but isn't all that tech-savvy, much less Linux-savvy.

Unfortunately, both adduser and useradd simply place the password that the script hands them (with the -p option) into /etc/shadow, in plaintext. Obvious problem is that since authentication is expecting a hash, the password entered is always incorrect. Using 'passwd' to change it does the proper hashing, but cannot be called 'invisibly'.
I'd much rather set up a random password and have it mail itself to the subscriber with instructions on how to change it.

Anyone know a command to silently change the password, or failing that, what is taken into account for the MD5SUM hashing so I can just hand 'adduser' THAT as the password?
 
  


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
Can you specift password on SSH command line? The_JinJ Linux - Newbie 4 07-26-2005 05:55 AM
Command Line Password Check jedediah Linux - Security 4 12-09-2004 03:01 PM
command line to set a password to a new userid myhato Linux - Security 3 08-19-2004 11:46 PM
written command line password generator lepricaun Programming 6 08-11-2004 12:36 AM
going to root without password thru command line amanjsingh Linux - Newbie 6 03-29-2004 11:38 PM

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

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