LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2004, 04:10 PM   #1
clintonm9
LQ Newbie
 
Registered: Jun 2003
Posts: 20

Rep: Reputation: 0
CHPASSWD Help! Shadow File!


I have been using chpasswd to create accounts.

I am using chpasswd like so

/usr/sbin/chpasswd < pass.txt

The weirdest thing is going on!


It changes the password, but let’s say this
Current password when checking email is:
cbipass019

Then I change the password to:
cbipass018

Both passwords work!!
Even if I try cbipass000

If I change it to
cbipass999
it does not work!

What is going on?

If I use passwd it all works fine!

using passwd makes this in shadow file.
rcampbell:$1$El/2kxQN$xeTYi4ODFt4W90YSHtkYz/:12494:0:99999:7:::

using chpasswd password = cbipass019
rcampbell:a8pObeBNjc2gk:12494:0:99999:7:::
using chpasswd password = cbipass018
rcampbell:4qae8BLbQxoQQ:12494:0:99999:7:::
 
Old 03-17-2004, 04:41 PM   #2
clintonm9
LQ Newbie
 
Registered: Jun 2003
Posts: 20

Original Poster
Rep: Reputation: 0
anybody?
 
Old 03-17-2004, 09:32 PM   #3
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
I usually change password for my clients/users by logging in as them and typing passwd.
 
Old 04-17-2004, 09:15 AM   #4
Nosq
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
It might be that chpasswd only reads the eight first charachters.

Then cbipass000 becomes cbipass0, which means that if you type any longer password, eg cbipass0123456789 it will also be truncated to cbipass0, and will therefore also work.
This is just a guess, but it sounds reasonable.
 
  


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
shadow file os2 Linux - Security 3 10-18-2005 03:20 PM
Shadow file question Timur Sakayev Linux - Security 4 06-07-2005 10:20 AM
chpasswd from a command line (without a text file) mpgram Linux - Security 1 04-18-2004 05:44 PM
shadow file stevee Linux - Security 1 10-07-2003 10:11 AM
shadow file? tjm Linux - Security 4 09-15-2003 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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