I have set the shell for the root user to bash. The system has a PPPoE configuration to connect to Telekom DSL. In /etc/rc.conf, the following PPP configuration is entered: ppp_enable="YES" ppp_nat="NO" ppp_profile="telekom" ppp_mode="ddial" On boot, the system does not activate this configuration. The ppp daemon is not started. Starting it manually works fine. Fix: In the Internet, I found a forum entry from 2005 describing the same problem (https://www.bsdforen.de/showthread.php?p=82530). The solution was to use /bin/csh as shell for root. After this change, the PPP configuration at system boot works as expected. I did no further debugging of this problem yet, but I assume that somewhere in the rc.d scripts /bin/csh is assumed to be the shell of the root user. This is clearly a bug which should be fixed. How-To-Repeat: Use bash (/usr/local/bin/bash) as shell for root. The Internet connection is not established on system boot after that.
Responsible Changed From-To: freebsd-bugs->freebsd-rc Over to maintainer(s). Be aware, however, that I'm not sure bash is supported as the default root shell, so other breakages similar to this may also occur.
The cause is probably that /etc/rc.d/ppp is using su -m, which uses the invoking user's shell from /etc/passwd. There doesn't seem a good alternative for su -m though, other than requiring the target user have /bin/sh as shell and using plain su or su -. A new option to su to execute a command using /bin/sh could be useful. -- Jilles Tjoelker
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped