[Bug 1411100] Re: Guest user not removed after guest session ends when using bash as default shell

Launchpad Bug Tracker 1411100 at bugs.launchpad.net
Thu Jan 22 15:18:41 UTC 2015


This bug was fixed in the package lightdm - 1.13.1-0ubuntu2

---------------
lightdm (1.13.1-0ubuntu2) vivid; urgency=medium

  * debian/guest-account.sh:
    - Rename variables to make script compatible with Bash (LP: #1411100)
  * debian/control:
    - Set required version of bash
 -- Robert Ancell <robert.ancell at canonical.com>   Wed, 21 Jan 2015 12:20:42 +1300

** Changed in: lightdm (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1411100

Title:
  Guest user not removed after guest session ends when using bash as
  default shell

Status in lightdm package in Ubuntu:
  Fix Released
Status in lightdm source package in Precise:
  Triaged
Status in lightdm source package in Trusty:
  Fix Committed
Status in lightdm source package in Utopic:
  Fix Committed

Bug description:
  The /usr/sbin/giest-account script contains a bug which prevents the
  removal of guest accounts:

  $ sudo /usr/sbin/guest-account remove guest-Hhiook
  /usr/sbin/guest-account: line 129: UID: readonly variable

  Maybe this is related to /bin/sh actually beeing a Bash:

  $ ll -d /bin/sh
  lrwxrwxrwx 1 root root 4 Jan  1 01:44 /bin/sh -> bash*

  But since using Bash as default sh is still a "feature" of Ubuntu, all
  scripts should work with both.

  Running the script with dash actually works:

  $ sudo dash /usr/sbin/guest-account remove guest-ZWCtva
  umount: /tmp/guest-ZWCtva: mountpoint not found
  umount: /tmp/guest-ZWCtva: mountpoint not found
  Removing user `guest-ZWCtva' ...
  Warning: group `guest-ZWCtva' has no more members.
  Done.

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



More information about the Ubuntu-sponsors mailing list