Hallo Liste, kann mir jemand schreiben, in welchem Turnus Samba die Configdatei einliest? Kann ich diese Zeitabstände ggf. einstellen? Danke vorab und Gruß, Sandro
Hallo Sandro, Lachender Engel wrote:
Hallo Liste,
kann mir jemand schreiben, in welchem Turnus Samba die Configdatei einliest? Kann ich diese Zeitabstände ggf. einstellen?
Danke vorab und Gruß,
Sandro
Soweit ich weiss nur beim Start von Samba. Bei SuSE z.b. rcsamba restart. Das ist im Übrigen bei den meisten Softwarepaketen (Server) der Fall. Gruss Christian
Christian Kuecherer wrote:
Soweit ich weiss nur beim Start von Samba. Bei SuSE z.b. rcsamba restart. Das ist im Übrigen bei den meisten Softwarepaketen (Server) der Fall.
Um Gotteswillen nein, dann müsstest Du ja bei jeder Neuanlage/Modifikation eines Shares den Dienst neu starten. Ich habe die Erfahrung gemacht, dass meistens nach spätestens einer Minute die neue Config geladen ist. VG Holger
Hallo Holger, Holger Wesser wrote:
Christian Kuecherer wrote:
Soweit ich weiss nur beim Start von Samba. Bei SuSE z.b. rcsamba restart. Das ist im Übrigen bei den meisten Softwarepaketen (Server) der Fall.
Um Gotteswillen nein, dann müsstest Du ja bei jeder Neuanlage/Modifikation eines Shares den Dienst neu starten. Ich habe die Erfahrung gemacht, dass meistens nach spätestens einer Minute die neue Config geladen ist.
Ah, vielleicht habe ich mich da geirrt. Christian
kann mir jemand schreiben, in welchem Turnus Samba die Configdatei einliest? Kann ich diese Zeitabstände ggf. einstellen?
Soweit ich weiss nur beim Start von Samba. Bei SuSE z.b. rcsamba restart. Das ist im Übrigen bei den meisten Softwarepaketen (Server) der Fall.
Oh nein, das will ich genau verhindern, da bei einem restart und sogar einem reload die Verbindungen weg sind...
Hallo, Lachender Engel wrote:
kann mir jemand schreiben, in welchem Turnus Samba die Configdatei
einliest?
Kann ich diese Zeitabstände ggf. einstellen?
Soweit ich weiss nur beim Start von Samba. Bei SuSE z.b. rcsamba restart. Das ist im Übrigen bei den meisten Softwarepaketen (Server) der Fall.
Oh nein, das will ich genau verhindern, da bei einem restart und sogar einem reload die Verbindungen weg sind...
Okay, Holger hatte recht.... Das config file wird alle 60s neu eingelesen. Man kann einen reload aber auch bei laufendem Daemon erzwingen. Mehr Detials unter "Changes at runtime" auf http://de.samba.org/samba/docs/using_samba/ch06.html Christian
Lachender Engel wrote:
Weißt Du auch, wo ich das einstellen kann?
In meinem Samba-Buch steht nur: "...Sie können die Konfigurationsdatei smb.conf und ihre Optionen jederzeit ändern, während die Samba-Daemons laufen. Standardmäßig prüft Samba die Konfigurationsdatei alle 60 Sekunden. Findet es irgendwelche Änderungen, werden diese unmittelbar danach wirksam..." Interessant ist aber das (hatte keine Lust, es aus dem deutschen Buch abzuschreiben, daher ein Auszug von http://de.samba.org/samba/docs/using_samba/ch06.html): "...Having Samba check the configuration file automatically can be convenient, but it also means that if you edit smb.conf directly, you might be immediately changing your network's configuration every time you save the file. If you're making anything more than a minor change, it may be wiser to copy smb.conf to a temporary file, edit that, run testparm filename to check it, and then copy the temporary file back to smb.conf. That way, you can be sure to put all your changes into effect at once, and only after you are confident that you have created the exact configuration you wish to implement. If you don't want to wait for the configuration file to be reloaded automatically, you can force a reload either by sending a hangup signal to the smbd and nmbd processes or simply by restarting the daemons. Actually, it can be a good idea to restart the daemons because it forces the clients to disconnect and reconnect, ensuring that the new configuration is applied to all clients. We showed you how to restart the daemons in Chapter 2, and sending them a hangup (HUP) signal is very similar. On Linux, it can be done with the command: # killall -HUP smbd nmbd In this case, not all changes will be immediately recognized by clients. For example, changes to a share that is currently in use will not be registered until the client disconnects and reconnects to that share. In addition, server-specific parameters such as the workgroup or NetBIOS name of the server will not go into effect immediately either. (This behavior was implemented intentionally because it keeps active clients from being suddenly disconnected or encountering unexpected access problems while a session is open.)..." VG Holger
Lachender Engel wrote:
Weißt Du auch, wo ich das einstellen kann?
In meinem Samba-Buch steht nur: "...Sie können die Konfigurationsdatei smb.conf und ihre Optionen jederzeit ändern, während die Samba-Daemons laufen. Standardmäßig prüft Samba die Konfigurationsdatei alle 60 Sekunden. Findet es irgendwelche Änderungen, werden diese unmittelbar danach wirksam..." Interessant ist aber das (hatte keine Lust, es aus dem deutschen Buch abzuschreiben, daher ein Auszug von http://de.samba.org/samba/docs/using_samba/ch06.html): "...Having Samba check the configuration file automatically can be convenient, but it also means that if you edit smb.conf directly, you might be immediately changing your network's configuration every time you save the file. If you're making anything more than a minor change, it may be wiser to copy smb.conf to a temporary file, edit that, run testparm filename to check it, and then copy the temporary file back to smb.conf. That way, you can be sure to put all your changes into effect at once, and only after you are confident that you have created the exact configuration you wish to implement. If you don't want to wait for the configuration file to be reloaded automatically, you can force a reload either by sending a hangup signal to the smbd and nmbd processes or simply by restarting the daemons. Actually, it can be a good idea to restart the daemons because it forces the clients to disconnect and reconnect, ensuring that the new configuration is applied to all clients. We showed you how to restart the daemons in Chapter 2, and sending them a hangup (HUP) signal is very similar. On Linux, it can be done with the command: # killall -HUP smbd nmbd In this case, not all changes will be immediately recognized by clients. For example, changes to a share that is currently in use will not be registered until the client disconnects and reconnects to that share. In addition, server-specific parameters such as the workgroup or NetBIOS name of the server will not go into effect immediately either. (This behavior was implemented intentionally because it keeps active clients from being suddenly disconnected or encountering unexpected access problems while a session is open.)..." VG Holger
Lachender Engel wrote:
Samba Buch? Welches hast DU? Titel, ISBN, Preis! :-) Ich habe bisher noch keines gefunden... O'Reilly, Samba 2nd Edition ISBN: 3-89721-359-1 EUR: 42,00
http://www.amazon.de/exec/obidos/ASIN/3897213591/qid=1074070659/sr=2-1/ref=s... oder online (englisch): http://de.samba.org/samba/docs/using_samba/toc.html Gruss Holger
Hallo Sandro, Lachender Engel schrieb:
Samba Buch? Welches hast DU? Titel, ISBN, Preis! :-) Ich habe bisher noch keines gefunden...
Ich habe zwei Web-Seiten aufgerufen, Lehmanns und SuSE. Gefunden habe ich folgendes: Lehmanns -------- http://www.lob.de/cgi-bin/work/framesetneu?flag=new&frame=yes&id=40218dc79952a Unter "Stichwort" "Samba" eintragen. In der erscheinenden Ergebnisliste gibt's dann u.a.: Ts, Jay / Eckstein, Robert / Collier-Brown, David Using Samba. A File and Print Server for Linux, Unix & Mac OS X (covers 2.2 and 3.0) ISBN: 0596002564 Preis: 44.00 Euro Jahr: 2003 ·Normalerweise kurzfristig lieferbar SuSE ---- http://www.edv-buchversand.de/suse/index2.html Dann unter "Weitere Bücher"
Themen > Samba
darunter dann auch: Samba Ein Datei- und Druckserver für Linux, Unix und Mac OS X Verfasser/Autor: Eckstein, Robert / Collier-Brown, David / Ts, Jay Verlag: O'Reilly Verlag Sprache: deutsch erschienen: 10/2003 Bestellnummer: OR-359 Preis: EUR 42,00 lieferbar in: 24 Stunden Es gibt hier auch billigere Bücher zu Samba. Aber auf den O'Reilly-Verlag ist meiner Meinung nach, was die Qualität der Bücher angeht, eigentlich immer Verlass. Grüße, Marcus PS: Gewöhn doch Deinem Outlook Exzess mal das "AW:" ab. Sonst gibt es solche Monster, wie in der Betreffzeile dieser Mail (Re:AW:AW:...). Das ist nicht nur optisch unschön. Es ist dann auch einigermaßen mühsam, zusammengehörige Mails zusammenzusuchen...
participants (4)
-
Christian Kuecherer
-
Holger Wesser
-
Lachender Engel
-
Marcus Glöder