LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-15-2017, 10:57 AM   #1
rajini23
Member
 
Registered: Sep 2011
Posts: 162

Rep: Reputation: Disabled
/etc/default/passwd


Hi,

please help me the usage of /etc/default/passwd

and i am planning to change the encrypt method from md5 to SHA512
on /etc/detault/passwd file, will that impact my /etc/passwd file.

or i need to do any changes after modifying the /etc/default/passwd.

and is there any way that i can find which encryption method my current users using in /etc/passwd.
 
Old 11-15-2017, 11:49 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Are you maybe on a Solaris system rather than a Linux system? So far as I know there is no /etc/default/passwd in Linux.
 
Old 11-15-2017, 01:02 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,797

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by rajini23 View Post
Hi,
please help me the usage of /etc/default/passwd

and i am planning to change the encrypt method from md5 to SHA512 on /etc/detault/passwd file, will that impact my /etc/passwd file. or i need to do any changes after modifying the /etc/default/passwd. and is there any way that i can find which encryption method my current users using in /etc/passwd.
You rarely, if EVER, have come back to post your results or even say thanks over the many years you've been here.
https://www.linuxquestions.org/quest...7/#post5775026

Covered here, since you ask about RHEL often:
https://access.redhat.com/solutions/59564

And putting "how to find out what is used for linux passwords" into Google pulls up LOTS:
https://security.stackexchange.com/q...ic-unix-accoun
 
Old 11-15-2017, 08:56 PM   #4
rajini23
Member
 
Registered: Sep 2011
Posts: 162

Original Poster
Rep: Reputation: Disabled
Hi,

Thankyou for inputs.

I am looking in SUSE-11 servers, i can find /etc/default/passwd.

just wants to know the usage of the file.




Regards,
Rajini.L
 
Old 11-16-2017, 07:14 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,797

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by rajini23 View Post
Hi,
Thankyou for inputs.

I am looking in SUSE-11 servers, i can find /etc/default/passwd. just wants to know the usage of the file.
SLES 11 is a commercial, pay-for distro. Paying for it also gets you support from SuSE, so the best thing to do is to call them. Have you? Have you looked IN that file?
 
Old 11-16-2017, 08:07 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
This link seems to directly address the original question:

Quote:
I'm relatively new to SLES, and I've really struggled to get my head
around PAM configuration. Mostly there now, but the biggest hurdle by
far was getting SHA256 hashes on my shadow passwords.

The updated documentation for PAM_UNIX2 points me in the right
direction, but it's not at all clear. Hopefully this will help any
other newcomers with the same issue.

Start with a default config:

*pam-config -c*
then update /etc/default/passwd and change as follows:

CRYPT=SHA256
CRYPT_FILES=SHA256
 
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
Solaris 10 /etc/default/passwd romeo_tango Solaris / OpenSolaris 7 12-04-2009 11:17 AM
What are all these default users in /etc/passwd? vegas35 Linux - Security 2 11-12-2007 03:26 PM
Default root passwd suse 10.1 rgpai Linux - Software 1 11-02-2006 09:19 PM
RHEL default max passwd length? NetArch Linux - Security 1 05-05-2006 04:44 AM
Default entries in /etc/passwd - Slackware J.W. Linux - Security 1 09-23-2003 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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