Comment 0 for bug 1581853

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

The Ask Ubuntu question <http://askubuntu.com/q/771080> called my attention to a regression in 16.04 as regards the possibilities for the system owner to configure the guest account. Up to 15.10 you can put e.g. this line in /etc/guest-session/prefs.sh:

adduser $USER somegroup

But if you try that in 16.04, the guest session won't launch. The explanation is that after the reorganization of the guest session code in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-session/setup.sh, which is not run as root.

The linked merge proposals restore the previous behavior by letting prefs.sh be sourced by /usr/sbin/guest-account again.