Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Syncing uids between two boxes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
alexraasch
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2003
Posts: 94
Location: Rostock, Germany

PostPosted: Thu Jun 09, 2005 1:00 pm    Post subject: Syncing uids between two boxes Reply with quote

I have a server and a backup server running. The server provides a number of SMB-shares. I am running a backup script that copies everything to the backup box every 60 minutes. Also, the backup server provides the same shares as does the server, so people can continue working when the main server crashes.

The problem is that a user can have different uids on both machines (depending on which users were created before) and therefore be denied access to his own files. Is there a way to ``sync'' the uids between the two? To make things more complicated, the main server runs an LDAP authentication mechanism, the backup server uses /etc/passwd and shadow.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Jun 09, 2005 1:03 pm    Post subject: Reply with quote

If you run samba on both then make samba authenticate against the other (master) server - this obviates the need to share any user info across the boxes.

Samba can authenticate any way you please - LDAP is certainly supported.

All you will need is a username mapping scheme from one box to the other.

EDIT: I must add to this that this is a very unstable scheme, since when the master server goes down you can effectively not use the backup box at all - since as you say the users are different.
So the setup doesn't work as it is now, either.
Either offload logins to a 3rd server or replicate the users between the boxes - LDAP does replication, of course.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
alexraasch
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2003
Posts: 94
Location: Rostock, Germany

PostPosted: Thu Jun 09, 2005 1:05 pm    Post subject: Reply with quote

I can have the backup samba authenticate against the LDAP server, but what if that server goes offline?
Back to top
View user's profile Send private message
alexraasch
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2003
Posts: 94
Location: Rostock, Germany

PostPosted: Thu Jun 09, 2005 1:16 pm    Post subject: Reply with quote

Authenticating Samba against the LDAP server doesn't solve the uid problem either. Samba only checks permissions for its own shares but not for the folders inside.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum