[postfix-users] Verzeichnisrechte
Hallo Liste,
mir fällt jetzt bei meiner neuen Postfixinstallation unter Wheezy nach postfix check folgende warnings auf:
postfix/postfix-script: warning: not owned by group postdrop: /usr/sbin/postqueue postfix/postfix-script: warning: not owned by group postdrop: /usr/sbin/postdrop postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/public postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/maildrop postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl/certs postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl/certs/ca-certificates.crt postfix/postfix-script: warning: not owned by root: /var/spool/postfix/lib postfix/postfix-script: warning: not owned by root: /var/spool/postfix/lib/x86_64-linux-gnu postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/zoneinfo postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/sasl2 postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nisplus-2.13.so and /lib/x86_64-linux-gnu/libnss_nisplus-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nis-2.13.so and /lib/x86_64-linux-gnu/libnss_nis-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.13.so and /lib/x86_64-linux-gnu/libnss_dns-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_compat-2.13.so and /lib/x86_64-linux-gnu/libnss_compat-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libresolv-2.13.so and /lib/x86_64-linux-gnu/libresolv-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_files-2.13.so and /lib/x86_64-linux-gnu/libnss_files-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_hesiod-2.13.so and /lib/x86_64-linux-gnu/libnss_hesiod-2.13.so differ
unter ubuntu ist mir das nicht aufgefallen. Postfix 2.9.6-2 mit apt installiert.
Sind das Sonderlocken von Debian, und genügt es die Rechte anzupassen; warum sind die lib Dateien unterschiedlich die sind doch nur kopiert oder?
Danke
On 07/17/2014 09:12 AM Hans Rembeck wrote:
Hallo Liste,
mir fällt jetzt bei meiner neuen Postfixinstallation unter Wheezy nach postfix check folgende warnings auf:
postfix/postfix-script: warning: not owned by group postdrop: /usr/sbin/postqueue postfix/postfix-script: warning: not owned by group postdrop: /usr/sbin/postdrop postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/public postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/maildrop postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl/certs postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl/certs/ca-certificates.crt postfix/postfix-script: warning: not owned by root: /var/spool/postfix/lib postfix/postfix-script: warning: not owned by root: /var/spool/postfix/lib/x86_64-linux-gnu postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/zoneinfo postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/sasl2
Das sollte sich mit `postfix set-permissions` beheben lassen. Mehr Details dazu in postfix(1).
postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nisplus-2.13.so and /lib/x86_64-linux-gnu/libnss_nisplus-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nis-2.13.so and /lib/x86_64-linux-gnu/libnss_nis-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.13.so and /lib/x86_64-linux-gnu/libnss_dns-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_compat-2.13.so and /lib/x86_64-linux-gnu/libnss_compat-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libresolv-2.13.so and /lib/x86_64-linux-gnu/libresolv-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_files-2.13.so and /lib/x86_64-linux-gnu/libnss_files-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_hesiod-2.13.so and /lib/x86_64-linux-gnu/libnss_hesiod-2.13.so differ
Das kann durch Updates verursacht werden. Der Paketmanager operiert unter /. Dein Postfix läuft ge-chroot-et. Der Paketmanager entpackt die Dateien aber nicht zusätzlich ins chroot von Postfix. Ein `service postfix restart` sorgt dafür, dass im Postfix-chroot alle erforderlichen Dateien aktualisiert werden.
Nach `postfix set-permissions` und `service postfix restart` sollte `postfix check` keine Output mehr erzeugen.
Gruß Pascal
Angeregt durch Hans habe ich auch mal ein postfix check laufen lassen, und bekomme folgende Warning unter Debian Wheezy:
postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.13.so and /lib/x86_64-linux-gnu/libnss_dns-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_compat-2.13.so and /lib/x86_64-linux-gnu/libnss_compat-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_files-2.13.so and /lib/x86_64-linux-gnu/libnss_files-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nis-2.13.so and /lib/x86_64-linux-gnu/libnss_nis-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nisplus-2.13.so and /lib/x86_64-linux-gnu/libnss_nisplus-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libresolv-2.13.so and /lib/x86_64-linux-gnu/libresolv-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_hesiod-2.13.so and /lib/x86_64-linux-gnu/libnss_hesiod-2.13.so differ
Wieso gibts die Librarys doppelt, und wieso unterscheiden die sich? In welchem Pfad sucht Postfix zuerst? Kann ich die veralteten einfach löschen?
* Joachim Fahrner jf@fahrner.name:
Angeregt durch Hans habe ich auch mal ein postfix check laufen lassen, und bekomme folgende Warning unter Debian Wheezy:
postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.13.so and /lib/x86_64-linux-gnu/libnss_dns-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_compat-2.13.so and /lib/x86_64-linux-gnu/libnss_compat-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_files-2.13.so and /lib/x86_64-linux-gnu/libnss_files-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nis-2.13.so and /lib/x86_64-linux-gnu/libnss_nis-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nisplus-2.13.so and /lib/x86_64-linux-gnu/libnss_nisplus-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libresolv-2.13.so and /lib/x86_64-linux-gnu/libresolv-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_hesiod-2.13.so and /lib/x86_64-linux-gnu/libnss_hesiod-2.13.so differ
Wieso gibts die Librarys doppelt, und wieso unterscheiden die sich?
Chroot aufgesetzt und dann chroot wurde nicht geupdated. cp -a /lib/x86_64-linux-gnu/libnss_dns-2.13.so /var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.13.so
am 18.07.14 09:34 schrieb Ralf Hildebrandt r@sys4.de:
- Joachim Fahrner jf@fahrner.name:
Angeregt durch Hans habe ich auch mal ein postfix check laufen lassen, und bekomme folgende Warning unter Debian Wheezy:
postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.13.so and /lib/x86_64-linux-gnu/libnss_dns-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_compat-2.13.so and /lib/x86_64-linux-gnu/libnss_compat-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_files-2.13.so and /lib/x86_64-linux-gnu/libnss_files-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nis-2.13.so and /lib/x86_64-linux-gnu/libnss_nis-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nisplus-2.13.so and /lib/x86_64-linux-gnu/libnss_nisplus-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libresolv-2.13.so and /lib/x86_64-linux-gnu/libresolv-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_hesiod-2.13.so and /lib/x86_64-linux-gnu/libnss_hesiod-2.13.so differ
Wieso gibts die Librarys doppelt, und wieso unterscheiden die sich?
Chroot aufgesetzt und dann chroot wurde nicht geupdated. cp -a /lib/x86_64-linux-gnu/libnss_dns-2.13.so /var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.13.so
ja, das muss ich bei Debian auch immer händisch machen. Gibts da 'ne elegantere Methode?
Am Freitag, den 18.07.2014, 09:34 +0200 schrieb Ralf Hildebrandt:
Chroot aufgesetzt und dann chroot wurde nicht geupdated. cp -a /lib/x86_64-linux-gnu/libnss_dns-2.13.so /var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.13.so
Das kann aber nur ein temporärer Workaround sein. Sobald die libs akutualisiert werden laufen die ja wieder auseinander. Durch welchen Prozess wurden die Kopien denn ursprünglich erzeugt? Da muss ja irgendwo ein Fehler sein.
Gruss Jochen
* Joachim Fahrner jf@fahrner.name:
Am Freitag, den 18.07.2014, 09:34 +0200 schrieb Ralf Hildebrandt:
Chroot aufgesetzt und dann chroot wurde nicht geupdated. cp -a /lib/x86_64-linux-gnu/libnss_dns-2.13.so /var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.13.so
Das kann aber nur ein temporärer Workaround sein. Sobald die libs akutualisiert werden laufen die ja wieder auseinander. Durch welchen Prozess wurden die Kopien denn ursprünglich erzeugt? Da muss ja irgendwo ein Fehler sein.
Mal ins Debianpaket gucken.
Am Freitag, den 18.07.2014, 11:53 +0200 schrieb Ralf Hildebrandt:
Mal ins Debianpaket gucken.
Offenbar werden die Libs nur für die chroot Umgebung benötigt. Da ich die nicht nutze (und noch nie genutzt habe) habe ich die einfach gelöscht.
Ein
postfix set-permissions
brachte schon einige Verbesserungen.
Aber ein postfix check bringt immer noch folgende Meldungen: postfix/postfix-script: warning: not owned by group postdrop: /usr/sbin/postqueue postfix/postfix-script: warning: not owned by group postdrop: /usr/sbin/postdrop postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl/certs postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl/certs/ca-certificates.crt postfix/postfix-script: warning: not owned by root: /var/spool/postfix/lib postfix/postfix-script: warning: not owned by root: /var/spool/postfix/lib/x86_64-linux-gnu postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/zoneinfo postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/sasl2
Warum nimmt sich Postfix die Dateirechte (unter var/spool/postfix/), meckert aber dann das sie nicht root gehören?
Mit freundlichen Grüßen
Rembeck Hans
Am 17.07.2014 21:51, schrieb Pascal Volk:
On 07/17/2014 09:12 AM Hans Rembeck wrote:
Hallo Liste,
mir fällt jetzt bei meiner neuen Postfixinstallation unter Wheezy nach postfix check folgende warnings auf:
postfix/postfix-script: warning: not owned by group postdrop: /usr/sbin/postqueue postfix/postfix-script: warning: not owned by group postdrop: /usr/sbin/postdrop postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/public postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/maildrop postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl/certs postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc/ssl/certs/ca-certificates.crt postfix/postfix-script: warning: not owned by root: /var/spool/postfix/lib postfix/postfix-script: warning: not owned by root: /var/spool/postfix/lib/x86_64-linux-gnu postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/zoneinfo postfix/postfix-script: warning: not owned by root: /var/spool/postfix/usr/lib/sasl2
Das sollte sich mit `postfix set-permissions` beheben lassen. Mehr Details dazu in postfix(1).
postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nisplus-2.13.so and /lib/x86_64-linux-gnu/libnss_nisplus-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_nis-2.13.so and /lib/x86_64-linux-gnu/libnss_nis-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.13.so and /lib/x86_64-linux-gnu/libnss_dns-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_compat-2.13.so and /lib/x86_64-linux-gnu/libnss_compat-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libresolv-2.13.so and /lib/x86_64-linux-gnu/libresolv-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_files-2.13.so and /lib/x86_64-linux-gnu/libnss_files-2.13.so differ postfix/postfix-script: warning: /var/spool/postfix/lib/x86_64-linux-gnu/libnss_hesiod-2.13.so and /lib/x86_64-linux-gnu/libnss_hesiod-2.13.so differ
Das kann durch Updates verursacht werden. Der Paketmanager operiert unter /. Dein Postfix läuft ge-chroot-et. Der Paketmanager entpackt die Dateien aber nicht zusätzlich ins chroot von Postfix. Ein `service postfix restart` sorgt dafür, dass im Postfix-chroot alle erforderlichen Dateien aktualisiert werden.
Nach `postfix set-permissions` und `service postfix restart` sollte `postfix check` keine Output mehr erzeugen.
Gruß Pascal
participants (5)
-
Hans Rembeck
-
Jim Knuth
-
Joachim Fahrner
-
Pascal Volk
-
Ralf Hildebrandt