← Back to team overview

desktop-packages team mailing list archive

[Bug 1411100] [NEW] guest user not removed after guest session ends

 

Public bug reported:

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.

** Affects: lightdm (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/1411100

Title:
  guest user not removed after guest session ends

Status in lightdm package in Ubuntu:
  New

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


Follow ups

References