Em 18-01-2014 18:06, Bruce Dubbs escreveu: > Pierre Labastie wrote: >> Le 18/01/2014 17:35, Bruce Dubbs a écrit : >>> Armin K. wrote: >>>> On 01/18/2014 05:20 PM, Fernando de Oliveira wrote: >>>>> 1. I discovered, the bad way, that cups-filters do not work, if you >>>>> update or reinstall cups. >>>>> >>>>> The instructions: >>>>> >>>>> rm -rf /usr/share/cups/banners && >>>>> rm -rf /usr/share/cups/data/testprint >>>>> >>>>> remove them. >>>>> >>>>> Is it worth a note or comment in cups page about that? >>>>> >>>> >>>> Maybe this is worth another thread, but better question would be: Do we >>>> want support package updates? >>> >>> I think we do. It makes the book much more useful. >>> >>> -- Bruce >>> >> So, I think we'd have to change the instructions on the Linux-Pam page. >> >> It has: >> >> rm -rfv /etc/pam.d >> >> That is OK when shadow and/or sudo do not have PAM support. But when they >> have, that instruction locks you out of your own system! >> You cannot su, sudo, &c anymore. And if you log out, you cannot log in >> anymore >> either... >> >> If we want to support updating, the instructions should be: >> ! [ -d /etc/pam.d ] && install -v -m755 -d /etc/pam.d > > Perhaps just > > mkdir -p /etc/pam.d
Bruce, the install without the test works just fine. I would only add -i in the mv of backups, to be sure not overwriting a previpus saved. > >> ! [ -r /etc/pam.d/other ] || mv /etc/pam.d/other{,.save} && > > [ -r /etc/pam.d/other ] && mv /etc/pam.d/other{,.save} && > >> cat > /etc/pam.d/other << "EOF" >> auth required pam_deny.so >> account required pam_deny.so >> password required pam_deny.so >> session required pam_deny.so >> EOF >> >> make check >> >> [ -r /etc/pam.d/other.save ] && >> mv /etc/pam.d/other{.save,} || >> rm -rfv /etc/pam.d/other This part is fundamental, Pierre. In the book, the instruction removes the entire directory: rm -rfv /etc/pam.d Even if nothing else is done, at least this one should be fixed as Pierre suggested. >> >> With some adequate words in "command explanations" or in the text (even a >> warning about the risk of being unable to log in again) >> >> Any thoughts > > In general I think a sentence or two about reinstalling would be enough. > Most of the time the issue would be for configuration files. -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page