LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-27-2009, 09:15 AM   #1
jamied66
LQ Newbie
 
Registered: Aug 2008
Posts: 13

Rep: Reputation: 0
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?

Thanks for any ideas.
 
Old 03-27-2009, 09:26 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
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.
 
Old 03-27-2009, 09:28 AM   #3
jamied66
LQ Newbie
 
Registered: Aug 2008
Posts: 13

Original Poster
Rep: Reputation: 0
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.

But if you're gonna' do it...

Thanks.
 
Old 03-27-2009, 12:45 PM   #4
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 349

Rep: Reputation: 42
Cronjob is a good idea.

Moreover as I know you cannot have hard links across file systems ?

I dont know it GFS has something different to offer
 
Old 03-27-2009, 01:42 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
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.
 
Old 03-27-2009, 04:01 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by asimba
Moreover as I know you cannot have hard links across file systems ?
Correct.
 
  


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
passwd.new, shadow.new, group.new and gshadow.new after upgrade to slackware 12.1 rhermsen Slackware 6 11-08-2008 04:59 PM
/etc/passwd, /etc/shadow, /etc/group? Educate me :)! nutnut Linux - General 4 06-11-2005 07:47 PM
Moving /etc/passwd and /etc/shadow john8675309 Linux - Software 1 01-24-2005 08:44 PM
Trouble after copy shadow, group and passwd to ltsp server tapanga Linux - General 1 04-19-2004 12:59 PM
/etc/passwd or /etc/shadow? tiger7007 Linux - Security 2 03-21-2004 04:41 AM


All times are GMT -5. The time now is 05:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration