Unable to start guest session if a user named guest exists

Bug #292533 reported by Jarno Suni
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gdm-guest-session (Baltix)
New
Undecided
Unassigned
gdm-guest-session (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

OS: Ubuntu 8.10

Revision history for this message
Martin Pitt (pitti) wrote :

That's actually deliberate. But if you have a real "guest" user, then that one should appear in the user switcher. Doesn't it?

Changed in gdm-guest-session:
status: New → Incomplete
Revision history for this message
Jarno Suni (jarnos) wrote :

Yes there are both guest and Guest session entries in the menu, but the latter one does not work.

David D Lowe (flimm)
Changed in gdm-guest-session:
status: Incomplete → New
Revision history for this message
Savvas Radevic (medigeek) wrote :

If you have your own custom guest user, then you could just purge the package for "Guest session":
sudo aptitude purge gdm-guest-session

Changed in gdm-guest-session (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Robert Ancell (robert-ancell) wrote :

This occurs if the guest session is not cleaned up properly (e.g. if the system loses power).

Changed in gdm-guest-session (Ubuntu):
status: New → Confirmed
Changed in gdm-guest-session (Ubuntu):
importance: Wishlist → Medium
summary: - Guest session does not work in Gnome, if a user named guest is created
+ Guest session does not work in Gnome, if a user named guest exists
summary: - Guest session does not work in Gnome, if a user named guest exists
+ Unable to start guest session if a user named guest exists
Changed in gdm-guest-session (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Robert Ancell (robert-ancell) wrote :

To reproduce the no-cleanup case:
1. Log in
2. Start guest session
3. Run sudo service gdm restart

There will be a guest account in /etc/passwd and a guest home directory in /tmp
If step 3 is replaced by a power failure there will be a guest account and no home directory

Changed in gdm-guest-session (Ubuntu):
assignee: nobody → Robert Ancell (robert-ancell)
assignee: Robert Ancell (robert-ancell) → Martin Pitt (pitti)
Martin Pitt (pitti)
Changed in gdm-guest-session (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

The current /usr/share/gdm/guest-session/guest-session-setup.sh does get along with an existing guest user, it just checks if it is a system user and that it doesn't have a pre-existing home dir outside of /tmp/. I cannot replicate this.

In such a situation, can you please give me the output of

  sudo sh -ex /usr/share/gdm/guest-session/guest-session-setup.sh

?

Changed in gdm-guest-session (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Robert Ancell (robert-ancell) wrote :

I've tried the cases of having an restarting gdm leaving the account and home dir, and restarting the machine and leaving just the account. It no longer seems to be an issue.

Martin Pitt (pitti)
Changed in gdm-guest-session (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
mp459 (mickey-srtdata) wrote :

FWIW, "removing" the guest account from the GUI did nto work for me. Had to

sudo userdel guest
sudo rm -fr /home/guest

Now it "guest session" works.

thanks for the tips
Y

Revision history for this message
WalterCool (waltercool) wrote :

Ubuntu should check if a user called "guest" exists... if exists... try with guest1... guest2... guest3... etc

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.