[users-admin] Modifying user has no effect

Bug #463353 reported by Fritz Heinrichmeyer
54
This bug affects 8 people
Affects Status Importance Assigned to Milestone
system-tools-backends
Fix Released
Medium
system-tools-backends (Ubuntu)
Fix Released
Undecided
Unassigned
Karmic
Fix Released
Undecided
Chris Coulson

Bug Description

Binary package hint: gnome-system-tools

i changed passwords of other users by creating a random password with the users-admin gui. It simply has no effect, even when i restart the system. i use karmic koala on i386 updated today (installed fresh from the 9.10rc).

***TEST CASE***
- Create a temporary test user account
- With both versions of system-tools-backends in turn:

1) Run users-admin
2) Unlock
3) Select test user and click Properties
4) Set new password
5) Try to log in with new password

With s-t-b 2.8.2-1, the password isn't changed and it is only possible to log in with the original account password.

With s-t-b 2.8.2-1ubuntu1, the password is changed and it is possible to log in with the new password

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Thanks for your report. Do you get the same problem if you run
sudo killall /usr/bin/perl; sudo /usr/share/system-tools-backends-2.0/scripts/SystemToolsBackends.pl -m UsersConfig
from console, and reproduce the procedure in users-admin without stopping the above command? Do you get the same problem when using a manual password?

If that not the case, please read the instructions at https://wiki.ubuntu.com/DebuggingGnomeSystemTools, and follow the procedure for the tool users-admin.

Changed in gnome-system-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Well, forget about my previous comment. Instructions and patch at https://bugs.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/458883/comments/24 should fix the problem.

Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

For me the lesson is: stop using perl, it is ugly and dangerous :-(

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

So does that fix your problem?
To packagers: I think this applies for a quick SRU - except if we wait for other fixes to publish at the same time, which can happen.

"Ugly" is mostly a matter of taste... ;-) perl in itself is not the cause of this bug. I think I'll make it more strict about variables declarations, and print more warnings. It's all about the coding style: developers should have used those restrictions from the beginning, and I should have been more careful, that's all. I don't believe it's worth rewriting all the backends in another language - except if you volunteer to do it!

Changed in gnome-system-tools (Ubuntu):
status: Incomplete → Confirmed
affects: gnome-system-tools (Ubuntu) → system-tools-backends (Ubuntu)
Changed in system-tools-backends (Ubuntu):
status: Confirmed → Incomplete
Changed in system-tools-backends:
status: New → Fix Committed
Changed in system-tools-backends (Ubuntu):
status: Incomplete → Confirmed
summary: - change of password with users-admin has no effect
+ [users-admin] Modifying settings of an existing user has no effect
Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote : Re: [users-admin] Modifying settings of an existing user has no effect

my problem was not fixed by this patch:

I created the other users on my box at work some days before with gnome-system-tools after a fresh install of karmic-rc, but am not able to change passwords with the gui. I tried with random password and with typing a password two times by hand.

I had immediately success on the other side when using "sudo passwd <username>" like in old days.

I changed passwords and even rebooted without effect. Of course this actions should have effect immediately. After changing password i should be able to login as this other user with the newly set password.

the new title of this bug is IMO wrong, as i was able to set contact info of my other users. Only password setting seems to fail (so the old title was wrong too :-) )

Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

PS: maybe the success of setting user info already is an effect of the applied patch, so the old title is correct for the situation after applying the patch and was not plain wrong before.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote : Re: [users-admin] Modifying user password has no effect

Thanks for the feedback. So if that doesn't work, could you follow the procedure I described in my first comment?

summary: - [users-admin] Modifying settings of an existing user has no effect
+ [users-admin] Modifying user password has no effect
Changed in system-tools-backends:
status: Fix Committed → Incomplete
Changed in system-tools-backends (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

i will try, but in my impression when i look at "sub change_user" in Users.pm with geany, i have the impression as if there where actions concerning passwords explicitly programmed only for FreeBSD and SunOS.

Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

i tried again with the following pasted and started in a terminal window and was still not able to change the password of the other user with an immediate effect.

fritz@jfh00:~$ sudo killall /usr/bin/perl; sudo /usr/share/system-tools-backends-2.0/scripts/SystemToolsBackends.pl -m UsersConfig

Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

PS: the change had no effect at all.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Yeah, you're right, that's what I eventually found out too. I've removed that line when fixing something else in the latest release. I know it was risky to commit such changes in a stable release, but I'd have thought we'd have discovered it before. Next cycle we'll make development releases to avoid those failures. Thanks for noticing it!

This fully applies for a Stable Release Update, attached patch also fixes bug 468922, since both problems come from typos in the same function. Easy to review and really nice to have.

Changed in system-tools-backends:
status: Incomplete → Fix Committed
Changed in system-tools-backends (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

the patch mentioned in #11 inserts no line for password change it is the same as referred to in #2

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Gosh, one mistake brings another... Here is the patch for the present bug.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Rationale for SRU:
- changing a user password fails with any user other than self, so this leaves Karmic without GUI to do that
- this fix merely brings back a line that should never have been removed since Jaunty, so there's basically no risk
- already applied upstream in the same form, should be available in 2.8.3

Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

with patch in #13 AND the previous "@command vs. $command" patch system-tools-backends are now OK for me.

Changed in system-tools-backends:
importance: Undecided → Unknown
status: Fix Committed → Unknown
Revision history for this message
Martin Pitt (pitti) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Chris volunteered to prepare an SRU for this, thanks!

Changed in system-tools-backends (Ubuntu Karmic):
assignee: nobody → Chris Coulson (chrisccoulson)
status: New → Triaged
tags: added: regression-potential
summary: - [users-admin] Modifying user password has no effect
+ [users-admin] Modifying user has no effect
Revision history for this message
Martin Pitt (pitti) wrote :

Retitled to accomodate bug 468922 (now marked as a duplicate).

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Martin: right, while the bugs are different, applying both patches at the same time makes sense.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Chris: Please also include a third patch that you will find at [1]. It will fix time/date setting, which was broken due to the same kind of mistake (which is why I should never ever have done that kind of change so late in the cycle!), a problem that was report as part of bug 475754. With those, the g-s-t should be good enough in Karmic.

1: http://git.gnome.org/cgit/system-tools-backends-clone/patch/?id=25f00b6ea6854602d988f2d387234ee370bf58e8

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

Thanks, I will prepare this in an hour or so

Changed in system-tools-backends (Ubuntu Karmic):
status: Triaged → In Progress
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

I'll have to finish this update tomorrow now, I got sidetracked debugging other issues this evening :(

Revision history for this message
greenhunter (tierfreunde-hagenburg) wrote :

fyi, you can add a user, but you can't delete it with users-admin. If you click on remove user it will always try to remove the same group and not the user. In terminel deluser or delgroup works well.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

greehunter: Please have a look at bug 458883.

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

Here is a karmic debdiff.

It also includes the time-admin fix for bug 475754 (so that time/date settings can be changed again), but there are 2 issues documented in that bug report and this change only fixes one of them. It might be best to wait for the second fix before uploading this.

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

sponsored, thanks Chris!

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted system-tools-backends into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in system-tools-backends (Ubuntu Karmic):
status: In Progress → Fix Committed
tags: added: verification-needed
Changed in system-tools-backends (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Thanks Chris! When you say "there are 2 issues documented in that bug report", do you mean that the other issue that still needs to be fixed is the update delay problem in bug 475754? If so, don't worry, because 1) that's not really blocker, and I believe that's actually not a regression, and 2) that would go into the gnome-system-tools package, which would need a separate upload.

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

Milan - no worries. As bug 475754 is being used for this SRU, would you mind opening a new bug report for the delay problem so that the issue can be tracked separately?

Thanks

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-tools-backends - 2.8.2-1ubuntu1

---------------
system-tools-backends (2.8.2-1ubuntu1) karmic-proposed; urgency=low

  * debian/patches/10_unbreak_user_modification.patch,
    debian/patches/11_fix_password_change.patch:
    - Upstream changes from GIT to fix modifying passwords of
      existing users from users-admin (LP: #463353)
  * debian/patches/12_fix_date_setting.patch:
    - Upstream GIT change to make it possible to change the time and
      date settings from time-admin again (LP: #475754)
 -- Chris Coulson <email address hidden> Mon, 09 Nov 2009 02:09:00 +0000

Changed in system-tools-backends (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied karmic-proposed to lucid.

Changed in system-tools-backends (Ubuntu):
status: Fix Committed → Fix Released
Changed in system-tools-backends (Ubuntu Karmic):
status: Fix Released → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

I confirm that with the karmic-proposed version, modifying an user's password works fine.

tags: added: verification-done
removed: verification-needed
Revision history for this message
David Trask (dtrask) wrote :

I can verify that the fix works. I enabled the "karmic proposed" repo....and then ran "sudo apt-get install system-tools-backends". Changing user passwords now works in "Users and Groups". I am the image maintainer for Open1to1.org which develops and deploys an image for 1 to 1 netbooks and laptops to schools. In the creation of the newest image based on Karmic, one of our testers ran into this bug. I urge moving the fix ahead as quickly as possible as this really affects schools and system admins in school settings. Thanks for all you do!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-tools-backends - 2.8.2-1ubuntu1

---------------
system-tools-backends (2.8.2-1ubuntu1) karmic-proposed; urgency=low

  * debian/patches/10_unbreak_user_modification.patch,
    debian/patches/11_fix_password_change.patch:
    - Upstream changes from GIT to fix modifying passwords of
      existing users from users-admin (LP: #463353)
  * debian/patches/12_fix_date_setting.patch:
    - Upstream GIT change to make it possible to change the time and
      date settings from time-admin again (LP: #475754)
 -- Chris Coulson <email address hidden> Mon, 09 Nov 2009 02:09:00 +0000

Changed in system-tools-backends (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Thales MG (thalesmg) wrote :

I just updated my Ubuntu 9.10, and I still can't change my own password with users-admin GUI, only with users-admin or the command "passwd" in terminal.
On users-admin, I tried changing my account's pass with and without clicking the "Allow changes" button. Both were unsuccessful.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Thales MG: If it's *your* password that you can't change, then the problem is not the really in the gnome-system-tools, since they start the "About Me" program to do that. Could you try to change your password using that program (from System->Preferences), and if that fails report a bug against that package? You can post the link here then. Thanks!

Revision history for this message
Thales MG (thalesmg) wrote :

By using the System->Preferences->About Me, I can change my password. The problem I have, is if I try to change my own password by going thru System->Administration->Users and groups.
If I try to change it there, it says my password is changed. I try to authenticate it on the same window, it says my new password is correct. But when I do something that requires my password (like updating packages) it doesn't accept my new pass, only the old one.
Even if I reboot, the pass to login is still the old one.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Could you open a new report against the gnome-system-tools? I'd like to investigate this further.

Revision history for this message
Thales MG (thalesmg) wrote :

You mean, report a new bug about gnome-system-tools? Ok.
By the way, I tried to change it again now, using users-admin, and it just keeps loading, and loading... Been a couple minutes or more now.

Changed in system-tools-backends:
importance: Unknown → Medium
status: Unknown → Fix Released
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.