Guest user not removed after guest session ends when using bash as default shell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lightdm (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Won't Fix
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned | ||
Utopic |
Fix Released
|
High
|
Unassigned |
Bug Description
The /usr/sbin/
$ sudo /usr/sbin/
/usr/sbin/
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/
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.
Related branches
- Robert Ancell: Approve
- Gunnar Hjalmarsson (community): Approve
-
Diff: 68 lines (+18/-18)1 file modifieddebian/guest-account.sh (+18/-18)
- Robert Ancell: Approve
- Gunnar Hjalmarsson (community): Approve
-
Diff: 68 lines (+18/-18)1 file modifieddebian/guest-account.sh (+18/-18)
Changed in lightdm (Ubuntu): | |
importance: | Undecided → High |
status: | New → Confirmed |
no longer affects: | lightdm |
Changed in lightdm (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in lightdm (Ubuntu Utopic): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in lightdm (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → High |
summary: |
- guest user not removed after guest session ends + Guest user not removed after guest session ends when using bash as + default shell |
Changed in lightdm (Ubuntu Precise): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in lightdm (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in lightdm (Ubuntu Utopic): | |
status: | Triaged → Fix Committed |
Changed in lightdm (Ubuntu Trusty): | |
status: | Triaged → Fix Committed |
Changed in lightdm (Ubuntu Precise): | |
status: | Triaged → Fix Committed |
status: | Fix Committed → Triaged |
tags: |
added: verification-done-utopic removed: verification-done-precise |
This patch renames the variables in the remove part of the script so that they cannot conflict with reserved Bash variables