LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2021, 06:52 PM   #1
james000
Member
 
Registered: Sep 2018
Posts: 143

Rep: Reputation: 2
Can I change password on different hashing?


Hi,
I have NIS master server on RHEL 7.6. It is using SHA512 as hashing algorithm by default. The users which are created on SHA512, are not able to login to a Solaris 10 with "Sun_SSH_1.1, SSH protocols 1.5/2.0". It gives segmentation fault. But some users were migrated from old NIS and those passwords are short (not SHA512).
Now, there is a requirement of one user needs access to this old Solaris 10 server. This user was created recently, so its password is SHA512. Is there anyway, I can reset his password on RHEL NIS master server, with older hashing?
I don't want to change default behavior of NIS server, for all users.
Please suggest.
Thanks
 
Old 08-27-2021, 01:25 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Here's a good HOWTO ref to the openssl cli tool https://www.madboa.com/geek/openssl/...password-entry and here's a soln https://unix.stackexchange.com/quest...n-command-line
Code:
openssl passwd -6 ..
Just scroll down to that example cmd and read the notes
 
1 members found this post helpful.
Old 08-27-2021, 01:28 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I guess that is not impossible (replacing the hashing algorithm), but I would rather try a different way.
From the other hand the ssh protocol error is not related to that hashing algorithm. see for example here: https://askubuntu.com/questions/1112...r-than-ssh-1-5
Segmentation fault is also hardly related to that.
I would try to fix that ssh config, and probably I would try to create a local user if there was no better way.
 
1 members found this post helpful.
  


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
Hiding smb mount password in fstab? Hashing? humbletech99 Linux - Networking 6 09-13-2021 10:19 AM
Hashing a Password using Makepasswd/MD5 metallica1973 Linux - General 4 04-02-2012 03:39 PM
Hashing multiple user:password combinations (sha) Jean-Luc Besson Linux - Software 5 12-28-2011 06:28 AM
linux password hashing indienick Programming 5 05-18-2006 02:12 PM
Command-line 'adduser': password not hashing Talesin Fedora 0 10-08-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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