LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-23-2018, 10:45 AM   #1
zrnaqvi
LQ Newbie
 
Registered: Nov 2009
Posts: 16

Rep: Reputation: 0
Suggestions for Password sync on Linux


It's a common headache for any enterprise which has a boat load of Linux server, trying to change passwords across all machines. Inevitably the passwords go out of sync because they expire on different dates and you end up spending the whole day changing passwords across all your servers. I'm looking for something that will allow me to change passwords on one server/website/location and it propagates the password across all servers connected to that tool.

I searched the forums and found some discussion on this topic from several years ago, but the environment has changed and new tools have hit the market. So I thought I'd stir the pot again and see if opinions have changed.

The simplest solution to me seems like OpenLDAP, Or Windows AD. SSH key based authentication takes care of the access issue but still doesn't solve the password change problem. We also use Thycotic Secret Server in our environment. It can work with SAML as the back end tool. Gives you a nice web front end to manage passwords and use SAML to propagate passwords to all connected apps. But SAML seems like something designed for web based applications and not local users on Linux servers.

Appreciate any help or guidance you folks can provide.
 
Old 01-23-2018, 12:24 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,667

Rep: Reputation: Disabled
NIS perhaps?
 
Old 01-24-2018, 09:03 AM   #3
zrnaqvi
LQ Newbie
 
Registered: Nov 2009
Posts: 16

Original Poster
Rep: Reputation: 0
NIS has security issues that scares corporate clients. It never gets approved.
 
Old 01-24-2018, 09:25 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,787

Rep: Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001
Quote:
Originally Posted by zrnaqvi View Post
NIS has security issues that scares corporate clients. It never gets approved.
Then they'd have problems with pretty much ANY large-scale system like this. OpenLDAP is in the same boat with NIS. If you want to use SAML, I've seen things that say you CAN do it, but it may not be too pleasant.

You reference SSH key based authentication...so if you have a root/SUDO user that has keys swapped on all your servers, a fairly simple script could just go through and run something like
Code:
echo -e "password\npassword" | passwd someuserid
Just pass the new password and a user ID as command-line parameters to your shell script, and have it loop through a list of server IP addresses. Change passwords for a user all at once. Or even just run "passwd -e someuserid" instead, and just expire the users password, which will force THE USER to change their own password(s) everywhere.
 
Old 01-25-2018, 08:21 AM   #5
zrnaqvi
LQ Newbie
 
Registered: Nov 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
You reference SSH key based authentication...so if you have a root/SUDO user that has keys swapped on all your servers, a fairly simple script could just go through and run something like
Code:
echo -e "password\npassword" | passwd someuserid
I'm doing something similar right now, but trying to get away from it as it requires a lot of manual work. I feel some sort of centralized authentication will be much more manageable. Ideally a combination of NIS+ with a password safe is perfect.
 
Old 01-25-2018, 09:49 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,787

Rep: Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001Reputation: 8001
Quote:
Originally Posted by zrnaqvi View Post
I'm doing something similar right now, but trying to get away from it as it requires a lot of manual work.
Should only have to set it up once, so yes there would be manual work up front, same with installing ANY tool.
Quote:
I feel some sort of centralized authentication will be much more manageable. Ideally a combination of NIS+ with a password safe is perfect.
Centralized is fine, but you mentioned that 'they' have problems with NIS from a security standpoint. ANY centralized solution would be vulnerable, including LDAP, NIS, or whatever. Only suggested a script because you mentioned 'they' had concerns about NIS security.

You know the environment better; just offering suggestions based on what you posted.
 
Old 01-26-2018, 08:25 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,702
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Pragmatically speaking, every Enterprises has some form of central authority for authentication and authorization ... and it's probably also what causes your badge to be authorized when you swipe it or tap it at the front door while trying to balance your coffee-cup. LDAP, MS-OpenDirectory, and Kerberos are common tools that are used for this purpose.

Users can thus "single sign-on" to any computer that they are authorized to use, and they can reach (intra-net "web") and other applications without being further challenged because "they already know who you are, and that you are that person, and what you're permitted to do." The corporate security staff can manage this centrally. And, security auditors can demonstrate that there are no "holes," to maintain compliance with laws.
 
Old 01-26-2018, 11:48 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,078

Rep: Reputation: 7364Reputation: 7364Reputation: 7364Reputation: 7364Reputation: 7364Reputation: 7364Reputation: 7364Reputation: 7364Reputation: 7364Reputation: 7364Reputation: 7364
https://www.linuxquestions.org/quest...rs-4175622308/
 
  


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
lost linux password ,any suggestions ? metaldetectingva Linux - Security 3 12-28-2009 09:48 PM
how to configure when change a linux user password than automatic sync samba passwd. hocheetiong Linux - Newbie 1 08-25-2008 05:57 PM
Password Dosen't Sync. On Linux System swap25091 Linux - Networking 3 04-12-2007 06:18 AM
Samba - Linux Password Sync with LDAP rbulman Linux - Networking 1 10-26-2006 05:56 AM
password sync. - linux server <-> linux workstation KRunch Linux - Networking 0 03-31-2004 01:37 AM

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

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