Le 02/11/2014 17:15, Bruce Dubbs a écrit : > Armin K. wrote: >> On 11/02/2014 10:52 AM, Pierre Labastie wrote: >>> >>> @Richard: xterm does not set the SHELL environment variable if the shell is >>> not listed in the /etc/shells file (see "man xterm"). It only sets >>> XTERM_SHELL >>> in that case. So, several solutions: >>> export SHELL=$XTERM_SHELL before running firefox building instructions, or >>> as you already found out, >>> SHELL=/bin/sh make... >>> or create the /etc/shells file (Chapter 3 of the BLFS book), and restart >>> xterm. >>> >> >> This is interesting. >> >> Do you or any other editor think that Mozilla products should link to >> that page instead of having a note about prepending the SHELL variable >> to make command? >> >> Or better yet, should (both) Python instructions link to that page, >> given that Python errors when SHELL is not set? > > Hmm. Maybe we should consider moving the BLFS page on /etc/shells to LFS. > > -- Bruce >
Since I have been bitten by the xterm/SHELL issue above (how do you think I knew that?), I agree! Clearly, /etc/shells is not the same as the other configuration files in Chapter 3. It is not some customization of the system, but really something needed by some applications, closer to something like /etc/ld.so.conf: - according to the shells(5) man page, some ftp clients do not allow users to connect when their shell is not listed in /etc/shells. - PAM has a module, pam_shells.so, which prevents a user to access the system if her shell is not listed in /etc/shells. The book PAM settings do not use it right now. - xterm has the already reported behavior. - chsh consults the /etc/shells file to allow changing shell (I do not know how it interacts with PAM). See "man chsh", it has an interesting explanation why /bin/rsh should *not* be in /etc/shells. So I think the right place for this file would be after shadow installation (shadow configuration, maybe). Just my two cents... Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
