LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-30-2006, 05:45 AM   #1
j0hnd0e
Member
 
Registered: Nov 2005
Distribution: slackware64, debian
Posts: 34

Rep: Reputation: 15
plaintext to shadow


Is it somehow possible to get shadow output from plaintext in some other file, not in /etc/shadow.

I need to generate every week another password for one user. That should be handle by bash script.
I will input random plaintext an then as output I should become shadow format like:
$1$JF11EXz9$p.O93fu4netf3JTfJii80/

I googled a lot, but nothing found.

Thanks


Travis
 
Old 04-30-2006, 07:02 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use the passwd command to change the password, in the script which generates the new password. Then you can have the same script record the plaintext version somewhere, so you can give the new password to the user.
 
Old 04-30-2006, 08:13 AM   #3
j0hnd0e
Member
 
Registered: Nov 2005
Distribution: slackware64, debian
Posts: 34

Original Poster
Rep: Reputation: 15
Hm... that is not what I need, becouse that script should read the real shadow file, and that I wouldn't like.

I need passwd to output shadow in some other file that is not /etc/shadow.
 
Old 04-30-2006, 09:18 AM   #4
j0hnd0e
Member
 
Registered: Nov 2005
Distribution: slackware64, debian
Posts: 34

Original Poster
Rep: Reputation: 15
As they say the best way is find it yourself.

This is the magic command.
Code:
openssl passwd -1 plaintext
and the output will be shadow

thanks anyway
 
  


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
/etc/shadow throwapart Linux - Security 2 01-18-2006 09:43 PM
Shadow Problem leonidg Programming 1 04-17-2005 06:09 AM
irc client that outputs plaintext to console? Samsara Linux - Networking 2 03-08-2005 02:47 PM
/etc/shadow- (notice the dash after the word shadow) shellcode Linux - Security 1 09-03-2004 05:54 AM
<plaintext> and IE/konqueror Zeratool Box Programming 0 06-11-2003 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:59 PM.

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