OpenVZ Forum


Home » General » Support » Shared /etc/passwd file?
Shared /etc/passwd file? [message #2405] Mon, 03 April 2006 16:54 Go to next message
wnpaul is currently offline  wnpaul
Messages: 15
Registered: March 2006
Location: Vienna, Austria
Junior Member
It seems to me that it should be possible to create a directory

/vz/private/common/etc/

with files such as passwd, group, hosts, etc. in it,
and then to make hard links to the appropriate locations in
the vps trees, to let the vps share these files.

Of course one would have to safeguard against race conditions
when processes in the vps try to change these files, but other
than that, it should work.

Can anyone think of a reason why this would NOT be a good idea?

Thanks,

Wolf


Wolf N. Paul - Doulos Communications
Vienna, Austria
Re: Shared /etc/passwd file? [message #2410 is a reply to message #2405] Mon, 03 April 2006 22:44 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Sounds reasonable to me... but I do have to ask... if you want to separate things into Virtual Private Servers to begin with, why do you want to have the same authentication database across all VPSes?

Do all of your VPSes have the same exact software installed or do they separate services?

Perhaps you should consider a centralized authentication method.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Shared /etc/passwd file? [message #2427 is a reply to message #2405] Tue, 04 April 2006 11:32 Go to previous messageGo to next message
wnpaul is currently offline  wnpaul
Messages: 15
Registered: March 2006
Location: Vienna, Austria
Junior Member
You touched on the reason for using OpenVZ: different versions of software for different customers. But mostly the same OS release.

As for centralized authentication methods: that may be a solution, but since all of my VPS sit on a single filesystem, a shared /etc/passwd is something that suggests itself.


Wolf N. Paul - Doulos Communications
Vienna, Austria
Re: Shared /etc/passwd file? [message #2474 is a reply to message #2405] Thu, 06 April 2006 20:28 Go to previous messageGo to next message
RapidVPS is currently offline  RapidVPS
Messages: 32
Registered: January 2006
Member
Hi, the best way to solve your problem is to employ LDAP authentication on each VE. What if you move one of your VPS to another physical server, how will you still share the passwd/shadow file? IMO there are centralized authentication methods which will solve your problem much better than modifying vz to support file sharing across VEs.

Rick
Re: Shared /etc/passwd file? [message #2521 is a reply to message #2474] Sat, 08 April 2006 18:49 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Yup, LDAP is exactly what is used to solve such tasks.

http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: * SOLVED * Problem with last kernel SUSE10
Next Topic: Quota error when trying to start openvz
Goto Forum:
  


Current Time: Fri Aug 09 06:20:12 GMT 2024

Total time taken to generate the page: 0.02975 seconds