LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-03-2016, 06:22 PM   #1
grist
LQ Newbie
 
Registered: Mar 2016
Distribution: Ubuntu
Posts: 2

Rep: Reputation: Disabled
PAM changes causing prompt during upgrade


Hi,

I have made some changes to the /etc/pam.d/password-common file to enable pam_cracklib.so and enforce a stronger password policy.

However, now, when I do a dist-upgrade it stops at the PAM module and prompts me to choose between retaining my changes or reverting to the default.

In the past when I've had these prompts during upgrades it has meant that I modified the wrong files and I should be creating a .local version or perhaps putting my changes into a file in a .d folder.

However, I can't find any information on how to do this with my PAM change. Is there a better place to make changes to the password policy so I don't get prompted whenever PAM is updated, or am I stuck with this and will always have to tell it to keep my changes?


Cheers,
grist.
 
Old 03-04-2016, 11:37 AM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 327

Rep: Reputation: 67
Hi,

It might help to let us know a little about your environment: flavor, version ...
My suggestion is that you copy your actual modified pam file (password-common), upgrade the pam package, accept the default (losing your changes), then compare the new file with the backed up one, and see/decide how to re enforce password policy.

Additionally, I think you also need to add pam_cracklib.so in system-auth in order to control text and graphical logins.

I hope it helps.
 
Old 03-06-2016, 02:57 PM   #3
grist
LQ Newbie
 
Registered: Mar 2016
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: Disabled
I didn't think my specific distro or changes were relevant to this question as it's more of a general enquiry as to how to make changes to password policy without triggering the warning during upgrades.

FWIW I'm currently using Ubuntu 14.04, but have seen this behaviour across multiple different distros. The change I made is to install libpam_cracklib and uncomment the line for pam_cracklib.so in password-common and tweak the settings slightly to match our Windows environment requirements.


Cheers,
grist.

Last edited by grist; 03-06-2016 at 02:58 PM.
 
  


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
[SOLVED] glibc causing problems with upgrade and installation amboxer21 Arch 5 07-23-2012 12:36 PM
How to prompt for some information from PAM module 1989gaurav Programming 3 01-11-2011 07:29 AM
SeaMonkey upgrade removes symlinks causing program crashes BCarey Slackware 3 05-31-2007 05:23 PM
PAM causing login failures cylarz Linux - Networking 1 12-18-2006 07:20 AM
Upgrade causing internet slowdown Neruocomp Slackware 2 04-06-2005 01:05 PM


All times are GMT -5. The time now is 04:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration