Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to run two samba server?!
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
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 513

PostPosted: Thu Feb 27, 2020 9:34 am    Post subject: how to run two samba server?! Reply with quote

Is there a guide how to setup up two samba server on one machine with different ports?
Back to top
View user's profile Send private message
Harvey Walsh
n00b
n00b


Joined: 24 Feb 2020
Posts: 10

PostPosted: Fri Feb 28, 2020 3:10 pm    Post subject: Multiple Server Hosting Reply with quote

[Moderator note: this post was ripped from https://wiki.samba.org/index.php/Multiple_Server_Instances, but is close enough to on-topic (and has legitimate responses) that I am leaving it in place for now. -Hu]

Each instance should operate on its own IP address (that independent IP address can be an IP Alias). Each instance of nmbd, smbd and winbindd should listen only on its own IP socket. This can be secured using the socket address parameter. Each instance of the Samba server will have its own SID also, this means that the servers are discrete and independent of each other.
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 513

PostPosted: Fri Feb 28, 2020 9:38 pm    Post subject: Reply with quote

ok, that sound good

but whats about the database with the users and passwords?

there is only one smbpasswd command if i will run two samba server?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14922

PostPosted: Sat Feb 29, 2020 1:39 am    Post subject: Re: Multiple Server Hosting Reply with quote

Harvey Walsh wrote:
that independent IP address can be an IP Alias
Could you elaborate on this? The only place I have seen aliases mentioned in the context of IP addressing is in the ifconfig documentation, which recommends that as a workaround for its inability to directly manage multiple addresses on a single interface.

SarahS93: do you want the user databases to be separate? If yes, configure each server with a unique path to its user database.
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