As a work-around for anyone else affected, I found that adding the
following code to /etc/profile after the initial comments fixed it. I
got this from the askubuntu article but had to add an addition /sbin to
the user (non-root) path (else clause).

if [ "`/usr/bin/id -u`" -eq 0 ]; then
    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
    PATH="/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1263736

Title:
  lightdm-session fails to login after update

Status in “lightdm” package in Ubuntu:
  New

Bug description:
  Similar to
  https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/962270 but
  exact errors differ, and I have no user customized ~/.bash* files so
  that is not the problem. (/etc/profile and ~/.profile are original as
  well)

  Cannot login graphical shell Unity as primary user. Can login as
  Guest.

  .xsession looks like this:
  /usr/bin/lightdm-session: 1: /etc/profile: id: not found
  /usr/bin/lightdm-session: 12: [: Illegal number:
  /usr/bin/lightdm-session: 1: /usr/sbin/lighdm-session: ls: not found
  /usr/bin/lightdm-session: 104: exec: ghome-session: not found

  As sudo I edited lightdm-session and put in some full paths; it only
  results in more downstream path errors. I could pound through all of
  them I suppose, but someone needs to triage this. askubuntu has an
  article on this bug, it suggests checking id and adding a path at the
  top of /etc/profile will fix it. However this distro still needs a
  fix.

  http://askubuntu.com/questions/336619/not-able-to-login-through-gui-
  in-ubuntu-12-04

  Since this is a box-stock 13.10 install and blew out after an update,
  I am filing this as a bug.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1263736/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to