/bin/bash not in /etc/shells, causing login window/fast user switch applet hilarity

Bug #228931 reported by Ashley Yakeley
60
Affects Status Importance Assigned to Milestone
Gnu Bash
Invalid
Undecided
Unassigned
bash (Ubuntu)
Fix Released
Undecided
Unassigned
Hardy
Fix Released
High
Unassigned

Bug Description

A recent update, or something, caused /bin/bash to be removed from /etc/shells. As a result, the login window face browser and also the fast user switch applet are empty (actually, the latter shows the current user).

Workaround is simple:
sudo add-shell /bin/bash

I have no idea which update caused this, or even if it was an update. So I can't tell you which package is responsible.

description: updated
Revision history for this message
Ashley Yakeley (ashley-semantic) wrote :

There was a bash update recently (3.2-0ubuntu17), so I'm guessing it was that.

Revision history for this message
Ashley Yakeley (ashley-semantic) wrote :

bash.postrm correctly removes /bin/bash and /bin/rbash from /etc/shells.

bash.postinst should have added them, but seems not to have.

Workaround:
sudo /usr/sbin/add-shell /bin/bash
sudo /usr/sbin/add-shell /bin/rbash

Changed in bash:
status: New → Confirmed
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Confirming. This affects the package (3.2-0ubuntu17) in hardy-proposed, and probably should be high importance.

From the changelog: 'Only call add-shell on new installations; guard remove-shell in post removal.' - however, the guarding of remove-shell doesn't work because the old postrm script gets executed in the upgrade (I think)

Revision history for this message
Gian Marco Gherardi (gianmarco-gherardi) wrote :

Same problem, following is the package update log

Commit Log for Sat May 10 11:03:27 2008
Upgraded the following packages:
bash (3.2-0ubuntu16) to 3.2-0ubuntu17
friendly-recovery (0.1) to 0.1.2
libmysqlclient15off (5.0.51a-3ubuntu5) to 5.0.51a-3ubuntu5.1
mysql-common (5.0.51a-3ubuntu5) to 5.0.51a-3ubuntu5.1

No users in login window (with human-list theme) and just current user in user-switcher gnome panel applet

Revision history for this message
Ivan Potapov (ingumsky) wrote :

Yep. The same for me after recent update. 'sudo add-shell /bin/bash' didn't make me happy 'cause the story continues — there's no faces.

Revision history for this message
Ivan Potapov (ingumsky) wrote :

Oh sorry. It solved. Thank you!

Matthias Klose (doko)
Changed in bash:
status: New → In Progress
Changed in bash:
importance: Undecided → High
Revision history for this message
Matthias Klose (doko) wrote :

fixed in 3.2-3ubuntu1

Changed in bash:
status: Confirmed → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

uploaded bash 3.2-0ubuntu18 to hardy-proposed

Revision history for this message
tsultana (tsultana) wrote :

This solved my problem as well.

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

Why does 3.2-0ubuntu18 change the behaviour in the postrm? Now remove-shell is not called any more on package removal. This change should be dropped, or properly justified in the changelog.

Revision history for this message
Steve Langasek (vorlon) wrote :

I concur with Martin's comments; it looks wrong to not call remove-shell on postrm remove, so this is a regression.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Why the need to guard add-shell in postinst (so it only runs on new installs) in the first place? Why not just run it regardless like before? If the shells are already in /etc/shells, they don't get added a second time.

Revision history for this message
Steve Langasek (vorlon) wrote :

Accepted into -proposed, please test and give feedback here

Changed in bash:
status: In Progress → Fix Committed
Revision history for this message
Danilo Piazzalunga (danilopiazza) wrote :

All right, I can see /bin/bash in /etc/shells again after updating to 3.2-0ubuntu18 (from 3.2-0ubuntu17).

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

Works here, too.

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

This bug only affected the previous hardy-proposed version, thus it can be closed in Hardy now.

Changed in bash:
status: Fix Committed → Fix Released
mayank (vatsarathore)
Changed in bash:
assignee: nobody → vatsarathore
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

mayank - Why did you add a remote bug link (with no actual upstream bug and no comment) to an already fixed bug?

Changed in gnubash:
status: New → Invalid
Changed in bash:
assignee: vatsarathore → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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