linking /etc/passwd , group, shadow to SAN storage
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
linking /etc/passwd , group, shadow to SAN storage
Is there a way to link the above files to a file on a shared storage device?
I have 2 servers running RHEL 5.2 (2.6.18-128.1.1.el5), and they're set up in a simple cluster to allowed for gfs volumes on a SAN.
I'd like to be able to update usernames/passwords on one and they apply to the other system as well.
I tried creating the files on the SAN and creating a symlink in /etc, and that didn't work:
Code:
[root@mgieeprodweb1 etc]# adduser foo
adduser: unable to open password file
I also tried creating a hard link, but got an error:
Code:
[root@mgieeprodweb1 etc]# ln /var/config_store/sys/passwd passwd
ln: creating hard link `passwd' to `/var/config_store/sys/passwd': Invalid cross-device link
Is there a way to do this, or will I have to go to some sort of LDAP authentication to accomplish this?
that's a pretty horrible architecture you're trying to create. I totally understand your motivation, but go with LDAP or similar. do things properly. If you really had to hack something simple in, you could use a cron job to periodically pull the latest files off a san and overwrite, but you really want a local file there.
Fair enough. Don't have an LDAP server on this side of the firewall, so I was trying to find a quick & easy fix for a system 4 people will ever log into.
If i recall right, I'm sure there is a way to specify additional passwd files, which would allow one to have a local passwd and a shared passwd file, but i'm buggered if I can find where to set this, nothing good coming up googling for pam based queries.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.