The problem does not exist in interactive mode. Only in command-line mode, with --gecos option. I agree that the problem is in chfn, but it is easier to fix it in adduser, and the proposed fix can be used even if chfn does not force --gecos=root,,,, libs:~# deluser newuser Suppression de l''utilisateur ´†newuser†ª... Fait. libs:~# adduser --gecos=new_user,1234,567,890,and_so_on newuser Adding user `newuser''... Adding new group `newuser'' (1009). Adding new user `newuser'' (1009) with group `newuser''. The home directory `/home/newuser'' already exists. Not copying from `/etc/skel'' Enter new UNIX password: Retype new UNIX password: passwd†: le mot de passe a ÈtÈ mis ‡ jour avec succËs libs:~# grep newus /etc/passwd newuser:x:1009:1009:root,,,,and_so_on:/home/newuser:/bin/bash libs:~# deluser newuser Suppression de l''utilisateur ´†newuser†ª... Fait. libs:~# adduser newuser Adding user `newuser''... Adding new group `newuser'' (1009). Adding new user `newuser'' (1009) with group `newuser''. The home directory `/home/newuser'' already exists. Not copying from `/etc/skel'' Enter new UNIX password: Retype new UNIX password: passwd†: le mot de passe a ÈtÈ mis ‡ jour avec succËs Modification des informations relatives ‡ l''utilisateur newuser Entrez la nouvelle valeur ou ´†EntrÈe†ª pour conserver la valeur proposÈe Nom complet [root]: new user N∞ de bureau []: 123 TÈlÈphone professionnel []: 456 TÈlÈphone personnel []: 789 Autre []: and so on Is the information correct? [y/N] y libs:~# grep newus /etc/passwd newuser:x:1009:1009:new user,123,456,789,and so on:/home/newuser:/bin/bash libs:~# chfn -w WorkNew newuser libs:~# grep newus /etc/passwd newuser:x:1009:1009:root,,WorkNew,:/home/newuser:/bin/bash Greetings -- -- Christian Gennerat
Marc Haber
2005-Nov-29 12:33 UTC
Bug#341202: [Adduser-devel] Bug#341202: still reproductible
On Tue, Nov 29, 2005 at 12:49:43PM +0100, Christian Gennerat wrote:> The problem does not exist in interactive mode. > Only in command-line mode, with --gecos option.NACK.> libs:~# deluser newuser > Suppression de l''utilisateur ????newuser????... > Fait. > libs:~# adduser --gecos=new_user,1234,567,890,and_so_on newuser > Adding user `newuser''... > Adding new group `newuser'' (1009). > Adding new user `newuser'' (1009) with group `newuser''. > The home directory `/home/newuser'' already exists. Not copying from > `/etc/skel'' > Enter new UNIX password: > Retype new UNIX password: > passwd???: le mot de passe a ?t? mis ??? jour avec succ?s > libs:~# grep newus /etc/passwd > newuser:x:1009:1009:root,,,,and_so_on:/home/newuser:/bin/bashPlease submit typescripts for Debian bug report in an English locale. My French is next to non-existent. $ sudo deluser newuser Removing user newuser''... done. $ sudo adduser --gecos=new_user,1234,567,890,and_so_on newuser Adding user newuser''... Adding new group newuser'' (1002). Adding new user newuser'' (1002) with group newuser''. The home directory /home/newuser'' already exists. Not copying from /etc/skel'' Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully $ grep newuser /etc/passwd newuser:x:1002:1002:new_user,1234,567,890,and_so_on:/home/newuser:/bin/bash $ Works for me.> libs:~# deluser newuser > Suppression de l''utilisateur ????newuser????... > Fait. > libs:~# adduser newuser > Adding user `newuser''... > Adding new group `newuser'' (1009). > Adding new user `newuser'' (1009) with group `newuser''. > The home directory `/home/newuser'' already exists. Not copying from > `/etc/skel'' > Enter new UNIX password: > Retype new UNIX password: > passwd???: le mot de passe a ?t? mis ??? jour avec succ?s > Modification des informations relatives ??? l''utilisateur newuser > Entrez la nouvelle valeur ou ????Entr?e???? pour conserver la valeur > propos?e > Nom complet [root]: new user > N??? de bureau []: 123 > T?l?phone professionnel []: 456 > T?l?phone personnel []: 789 > Autre []: and so on > Is the information correct? [y/N] y > libs:~# grep newus /etc/passwd > newuser:x:1009:1009:new user,123,456,789,and so on:/home/newuser:/bin/bash > > libs:~# chfn -w WorkNew newuser > libs:~# grep newus /etc/passwd > newuser:x:1009:1009:root,,WorkNew,:/home/newuser:/bin/bashWorks for me as well. $ sudo deluser newuser Removing user newuser''... done. $ sudo adduser --gecos=new_user,1234,567,890,and_so_on newuser Adding user newuser''... Adding new group newuser'' (1002). Adding new user newuser'' (1002) with group newuser''. The home directory /home/newuser'' already exists. Not copying from /etc/skel'' Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully $ grep newuser /etc/passwd newuser:x:1002:1002:new_user,1234,567,890,and_so_on:/home/newuser:/bin/bash $ sudo deluser newuser Removing user newuser''... done. $ sudo adduser newuser Adding user newuser''... Adding new group newuser'' (1002). Adding new user newuser'' (1002) with group newuser''. The home directory /home/newuser'' already exists. Not copying from /etc/skel'' Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for newuser Enter the new value, or press ENTER for the default Full Name []: new user Room Number []: 123 Work Phone []: 456 Home Phone []: 789 Other []: and so on Is the information correct? [y/N] y $ grep newuser /etc/passwd newuser:x:1002:1002:new user,123,456,789,and so on:/home/newuser:/bin/bash $ sudo chfn -w WorkNew newuser $ grep newuser /etc/passwd newuser:x:1002:1002:new user,123,WorkNew,789,and so on:/home/newuser:/bin/bash $ Looks like a bug in passwd which has been fixed in current unstable. I don''t think that adduser should cater for bugs in other packages that are already fixed. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Marc Haber
2006-Feb-12 12:19 UTC
Bug#341202: Re: [Adduser-devel] Bug#341202: still reproductible
user adduser@packages.debian.org usertags #341202 close-20060331 thanks On Tue, Nov 29, 2005 at 01:20:19PM +0100, Marc Haber wrote:> Please submit typescripts for Debian bug report in an English locale. > My French is next to non-existent. > > Works for me. > > Works for me as well. > > Looks like a bug in passwd which has been fixed in current unstable.Can you please check whether your bug is still reproducible on your system and please report back. If no answer is received by 2006-03-31, I''m going to close this bug. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835