[SAMBA3] Multiple Virtual Server Hosting probleem

Pagina: 1
Acties:

  • cor-gijs
  • Registratie: Maart 2000
  • Laatst online: 21-09-2025

cor-gijs

Dig further for bigger hole

Topicstarter
Ik was even bezig met Multiple Virtual Server Hosting (zie ook hier) en loop tegen een probleempje aan. Ik heb de volgende .conf-files gemaakt:

smb.conf
code:
1
2
3
4
5
[global]
workgroup = HIGHWAY
netbios name = CSIRAC
netbios aliases = ENIAC
include = /etc/samba/smb-%L.conf


smb-csirac.conf
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[global]
workgroup = HIGHWAY
netbios name = CSIRAC
security = share
public = yes
invalid users = root
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

[share1]
        comment = share1
        path = /home/share1
        browsable = yes
        guest ok = yes
        writable = yes
        user = guest
        create mode = 0755

smb-eniac.conf
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[global]
workgroup = HIGHWAY
netbios name = ENIAC
security = share
public = yes
invalid users = root
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

[share2]   comment = share2
               path = /home/share2
               browsable = yes
               guest ok = yes
               writable = yes
               user = guest
               create mode = 0755


Als ik nu ga kijken, zie ik in de werkgroep wel de twee servers staan, alleen hebben ze allebei dezelfde share (share1). Het lijkt er dus op dat Samba voor beide aliases dezefde .conf-file gebruikt. Heeft iemand hier toevallig ervaring mee?

There is no adequate defense, except stupidity, against the impact of a new idea.


  • cor-gijs
  • Registratie: Maart 2000
  • Laatst online: 21-09-2025

cor-gijs

Dig further for bigger hole

Topicstarter
Goed, laatmaar. Zoals altijd vind je dingen pas als je ophoudt met zoeken. De oplossing is vrij simpel. even wat aanpassen in smb.conf, geen netbios name meegeven, alleen aliases:
code:
1
2
3
4
[global]
workgroup = HIGHWAY
netbios aliases = ENIAC CSIRAC
include = /etc/samba/smb-%L.conf

There is no adequate defense, except stupidity, against the impact of a new idea.