Summary: | kuser destroys passwords if /etc/shadow not present (?) | ||
---|---|---|---|
Product: | [Unmaintained] kuser | Reporter: | Christopher Martin <chrsmrtn> |
Component: | general | Assignee: | Szombathelyi György <gyurco> |
Status: | CONFIRMED --- | ||
Severity: | grave | CC: | ana, tu4manjohn |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Christopher Martin
2005-11-28 14:40:49 UTC
If you don't have /etc/shadow, then clear the shadow file option in the config dialog. Granted, but when dealing with such an important part of the system, some automatic checks to prevent forgetful users from messing up would be very welcome. I see: --- SVN commit 484993 by gyurco: Fix a crash in the user dialog where shadow passwords are disabled. Also switch to shadowless mode when shadow file not found. However it's just for confort, it's desired to clear the shadow file name in the config dialog when shadow file not used. --- But what about situations where /etc/shadow is present but shadow passwords have been turned off using /sbin/shadowconfig ? It isn't obvious to the user that the presence of /etc/shadow in the config dialog makes kuser use shadow passwords. This really ought to be improved further. Also, it would be really nice if you could backport these fixes to the 3.4 branch (and maybe even 3.3). Thanks, Christopher Martin The real problem is (in your point of view) that KUser doesn't use the config files as adduser & Co. But KUser will not do that in the future, since it would be very platform-dependent and error-prone. If you don't want to use shadow file, then please configure KUser to not use. It's very simple, just clearing some text from an editbox. I think if an user (or admin) is advanced enough to disable shadow support, she/he might clear an editbox. I understand that KUser doesn't plan to use adduser. All I'm requesting is an additional check or two to ensure that users who for whatever reason don't use shadow passwords can't mess up their systems so easily. Some people may not even remember whether or not they're using shadow passwords, and simply assume that KUser is smart enough to figure it out itself. Also, it is NOT obvious that clearing an edit box is the same as disabling the shadow password abilities of KUser. This is NOT what dialog boxes normally do. They just contain default information that may or may not be used. Enabling/disabling features is what (for instance) checkboxes are for. You're might be right, a checkbox could be more self-commenting, but I think it's a very rarerly used option, so I'll lazy to add it...However I'll accept a patch ;) Beside the checkbox issue, do you plan to add any further checks to ensure that when the user isn't using shadow passwords, either because the file isn't there, or because shadowconfig is off, that the system isn't messed up? To me, this is still the most important aspect of this bug. I already added the checking for the shadow file, but I don't plan to parse /etc/login.defs or any other config file. What I can imagine solving this: Using the 'system' backend for managing users/groups can be extended to modify users/groups via external scripts (like useradd, groupadd, etc...). Currently it's a read-only backend, so it would be a nice addition. Patches are welcome! |