Hallo, ----- Original Message -----
From: "Arno Lehmann" Sent: Monday, February 08, 2010 2:44 PM
08.02.2010 12:11, Andre Tann wrote:
Alexander Winzer, Montag 08 Februar 2010:
ich benutze seit einiger Zeit Samba. Die smb.conf habe ich vor längerer Zeit so erstellt, dass ich erst eine smb.conf.master angelegt, die getestet, optimiert usw. und mit aussagekräftigen Kommentaren versehen habe - natürlich auch der Konsole mit testparm geprüft. Ich habe dann mit einem weiteren Programm aus der smb.conf.master die smb.conf erstellen lassen. Dabei wurden Leerzeilen und insbesondere die Kommentare automatisch entfernt.
[...]
GENAU das hatte ich gesucht. Den Parameter -s hatte ich schon imer Verdacht, bin aber auf das "> smb.conf" nicht (mehr) gekommen. Wo genau steht das?
testparm -s /etc/samba/smb.conf.master > /etc/samba/smb.conf
Ich zitiere mal eben aus dem "offiziellen" Samba-HOWTO: "The smb.conf file is constantly checked by the Samba daemons smbd and every instance of itself that it spawns, nmbd and winbindd. It is good practice to keep this file as small as possible. Many administrators prefer to document Samba configuration settings and thus the need to keep this file small goes against good documentation wisdom. One solution that may be adopted is to do all documentation and configuration in a file that has another name, such as smb.conf.master. The testparm utility can be used to generate a fully optimized smb.conf file from this master configuration and documentation file as shown here:
root# testparm -s smb.conf.master > smb.conf
[...]
Ich habe das jetzt als Kommentierung in der smb.conf.master selbst gespeichert -> wird ja weggelöscht :-) Gruß und 1000dank, Alex -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org