Koozali.org: home of the SME Server

two smb.conf? [SOLVED]

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
two smb.conf? [SOLVED]
« on: July 20, 2006, 12:59:10 PM »
I ask it there first 'cause I don't know if it's a bug but I saw on many SME server (7.0) that there are two smb.conf files: one in /etc/smb.conf and another in /etc/samba/smb.conf

Only /etc/smb.conf is in the template directory so I try to remove the /etc/samba/smb.conf (I haven't deleted it, I just rename it as /etc/samba/smb.conf.old). Then I restarted the services smbd and nmbd. They started corectly and seems to work. But I realized the day after that the CPU were busy and I saw that a "config getprop smb" were running very often. Then I rename the /etc/samba/smb.conf.old as /etc/samba/smb.conf and after restarting the two services, all were ok.

My question is does anyone knows wich smb.conf is used?
C'est la fin du monde !!! :lol:

Offline mdo

  • *
  • 355
  • +0/-0
two smb.conf? [SOLVED]
« Reply #1 on: July 20, 2006, 09:12:28 PM »
/etc/samba/smb.conf is the configuration file which is used!
/etc/smb.conf is a link to /etc/samba/smb.conf

All templates for Samba are under ....../etc/smb.conf but they still have to be expanded to /etc/samba/smb.conf.
With other words: If you want to do things manually you have to do 'expand-template /etc/samba/smb.conf' and then to restart the Samba services via '/etc/rc7.d/S91smb restart'
Michael
...

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
two smb.conf? [SOLVED]
« Reply #2 on: July 21, 2006, 09:31:39 AM »
ok, thanks a lot for the information.
C'est la fin du monde !!! :lol: