Debian Bug report logs - #535857
adduser: --backup-to silently ignored without --backup

version graph

Package: adduser; Maintainer for adduser is Debian Adduser Developers <adduser@packages.debian.org>; Source for adduser is src:adduser (PTS, buildd, popcon).

Reported by: Zak Wilcox <noreply@rosamundcoppen.co.uk>

Date: Sun, 5 Jul 2009 15:57:07 UTC

Severity: important

Found in version adduser/3.110

Fixed in version adduser/3.111

Done: Stephen Gran <sgran@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#535857; Package adduser. (Sun, 05 Jul 2009 15:57:09 GMT) (full text, mbox, link).


Acknowledgement sent to Zak Wilcox <noreply@rosamundcoppen.co.uk>:
New Bug report received and forwarded. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>. (Sun, 05 Jul 2009 15:57:09 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Zak Wilcox <noreply@rosamundcoppen.co.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: adduser: --backup-to silently ignored without --backup
Date: Sun, 05 Jul 2009 16:53:10 +0100
Package: adduser
Version: 3.110
Severity: important

When you delete a user and want to create a backup of their home directory
in a specific place, a read of the manpage could easily fool you into
thinking that the following would do the trick:
  deluser --remove-home --backup-to /root/deleted-users/ joe
What this actually does is remove joe's home directory without making any
backup or confirming the deletion.  By the time you realise this the contents
of joe's home directory are gone for good.  I found this out the hard way.

IMHO:
 * --backup-to should (verbosely) imply --backup, or
 * --backup-to should loudly refuse to act without --backup
and the man page needs updating.

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages adduser depends on:
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  passwd                        1:4.1.1-6  change and administer password and
ii  perl-base                     5.10.0-19  minimal Perl system

adduser recommends no packages.

Versions of packages adduser suggests:
ii  liblocale-gettext-perl        1.05-4     Using libc functions for internati
ii  perl-modules                  5.10.0-19  Core Perl modules

-- debconf information:
* adduser/homedir-permission: true




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#535857; Package adduser. (Sun, 05 Jul 2009 18:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Joerg Hoh <joerg@joerghoh.de>:
Extra info received and forwarded to list. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>. (Sun, 05 Jul 2009 18:39:05 GMT) (full text, mbox, link).


Message #10 received at 535857@bugs.debian.org (full text, mbox, reply):

From: Joerg Hoh <joerg@joerghoh.de>
To: 535857@bugs.debian.org, 535857-submitter@bugs.debian.org
Subject: Re: Bug#535857: adduser: --backup-to silently ignored without --backup
Date: Sun, 5 Jul 2009 20:36:59 +0200
[Message part 1 (text/plain, inline)]
severity 535857 normal
thanks

On Sun, Jul 05, 2009 at 04:53:10PM +0100, Zak Wilcox wrote:
> 
> When you delete a user and want to create a backup of their home directory
> in a specific place, a read of the manpage could easily fool you into
> thinking that the following would do the trick:
>   deluser --remove-home --backup-to /root/deleted-users/ joe
> What this actually does is remove joe's home directory without making any
> backup or confirming the deletion.  By the time you realise this the contents
> of joe's home directory are gone for good.  I found this out the hard way.
> 
> IMHO:
>  * --backup-to should (verbosely) imply --backup, or
>  * --backup-to should loudly refuse to act without --backup
> and the man page needs updating.

Thanks for catchting, there is a missing conistency check.

We will make --backup-to imply --backup, but without any output. The
manpage will updated accordingly.

The fix is committed to the repository and will be included in the next
version.

Jörg

-- 
What did you do to the cat? It looks half-dead. -Schroedinger's wife
[Message part 2 (application/pgp-signature, inline)]

Message sent on to Zak Wilcox <noreply@rosamundcoppen.co.uk>:
Bug#535857. (Sun, 05 Jul 2009 18:39:08 GMT) (full text, mbox, link).


Reply sent to Stephen Gran <sgran@debian.org>:
You have taken responsibility. (Sun, 20 Sep 2009 22:48:14 GMT) (full text, mbox, link).


Notification sent to Zak Wilcox <noreply@rosamundcoppen.co.uk>:
Bug acknowledged by developer. (Sun, 20 Sep 2009 22:48:14 GMT) (full text, mbox, link).


Message #18 received at 535857-close@bugs.debian.org (full text, mbox, reply):

From: Stephen Gran <sgran@debian.org>
To: 535857-close@bugs.debian.org
Subject: Bug#535857: fixed in adduser 3.111
Date: Sun, 20 Sep 2009 22:19:17 +0000
Source: adduser
Source-Version: 3.111

We believe that the bug you reported is fixed in the latest version of
adduser, which is due to be installed in the Debian FTP archive:

adduser_3.111.dsc
  to pool/main/a/adduser/adduser_3.111.dsc
adduser_3.111.tar.gz
  to pool/main/a/adduser/adduser_3.111.tar.gz
adduser_3.111_all.deb
  to pool/main/a/adduser/adduser_3.111_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 535857@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stephen Gran <sgran@debian.org> (supplier of updated adduser package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 20 Sep 2009 22:09:53 +0100
Source: adduser
Binary: adduser
Architecture: source all
Version: 3.111
Distribution: unstable
Urgency: low
Maintainer: Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>
Changed-By: Stephen Gran <sgran@debian.org>
Description: 
 adduser    - add and remove users and groups
Closes: 502150 515909 515909 517505 520586 535857 544504 545024 545475
Changes: 
 adduser (3.111) unstable; urgency=low
 .
   [ Joerg Hoh ]
   * deluser: --backup-to implies --backup; thanks Zak Wilcox (closes: #535857)
   * deluser: sockets should also be backupped and removed (closes: #545024),
     thanks Christian Sievers for spotting.
   * allow underscores again in usernames (closes: #520586)
   * remove the "games" group from the EXTRA_GROUPS example (closes: #502150)
   * really warn if a user is already present when creating a new system user
     (closes: 515909)
   * document the interaction between --system and --close (closes: #515909)
 .
   [ Stephen Gran ]
   * Update po4a calls
   * Translations:
     - fr (thanks Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>
       closes: #545475)
     - sv (thanks Daniel Nylander <yeager@ubuntu.com> closes: #517505)
     - zh_CN (thanks Aron Xu <happyaron.xu@gmail.com> closes: #544504)
   * update standards version - no changes
Checksums-Sha1: 
 a88675596f20799582560d96bd2843a5733ca553 1029 adduser_3.111.dsc
 4b874463cc33770a487e8ee29610db30607f7c63 279519 adduser_3.111.tar.gz
 8b44de5811c120eb2e349fc3e796d8b06d22ff7f 156872 adduser_3.111_all.deb
Checksums-Sha256: 
 09e2c5f4cf5ef68e0f279ea967a9ff887fd7f90bf9b2b7763fac61f76bf5e944 1029 adduser_3.111.dsc
 1c16ab1dec3159423e25ce5519aff24c52243ff2f0998d317815d281f979e8e6 279519 adduser_3.111.tar.gz
 0b416e8d1a0bc949754138843589bd00e64682ad8638b024d7475ae70ede1259 156872 adduser_3.111_all.deb
Files: 
 d37ba5f0d4307433f4a3827fe497e153 1029 admin important adduser_3.111.dsc
 d02c8a84893db6f76f9a75c3c4d11b8a 279519 admin important adduser_3.111.tar.gz
 a5196425ad59794274bd0132a5f7a53c 156872 admin important adduser_3.111_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkq2nGoACgkQSYIMHOpZA47HQQCfSDR6SOM0yvJV6SnGTvxwczHv
S/AAoN93FbRam+1ytod5UTvBJCNQssKN
=1lfv
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 29 Oct 2009 08:08:38 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 21:23:41 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.