Bug#341230: [Pkg-shadow-devel] Bug#341230: passwd: Partial changes with chfn other values

Christian Perrier bubulle at debian.org
Tue Nov 29 16:56:21 UTC 2005


severity 341230 normal
tags 341230 unreproducible
thanks

Quoting Christian Gennerat (Christian.Gennerat at m4x.org):
> Package: passwd
> Version: 1:4.0.13-7
> Severity: important
> 
> When a chfn is done by root, to change only one value,
> other values are taken from the root-gecos
> 
> libs:~#  chfn -f newus -r ndesk -w ntel -h nhom -o noth newuser
> libs:~# grep newus /etc/passwd
> newuser:x:1009:1009:newus,ndesk,ntel,nhom,noth:/home/newuser:/bin/bash
>  
> libs:~# chfn -h HomeNew newuser
> libs:~# grep newus /etc/passwd
> newuser:x:1009:1009:root,rroot,wroot,HomeNew,oroot:/home/newuser:/bin/bash
> libs:~# grep wroot /etc/passwd
> root:x:0:0:root,rroot,wroot,hroot,oroot:/root:/bin/bash
> newuser:x:1009:1009:root,rroot,wroot,HomeNew,oroot:/home/newuser:/bin/bash

I absolutely can't reproduce this behaviour here:

mykerinos:~# adduser krabs
Ajout de l'utilisateur « krabs »...
Ajout du nouveau groupe « krabs » (1004).
Ajout du nouvel utilisateur « krabs » (1004) avec le groupe « krabs ».
Création du répertoire personnel « /home/krabs ».
Copie des fichiers depuis « /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 krabs
Entrez la nouvelle valeur ou « Entrée » pour conserver la valeur proposée
        Nom complet []: Captain Krabs
        N° de bureau []: The Crusty Krab
        Téléphone professionnel []: Bikini Bottom
        Téléphone personnel []: Oceans
        Autre []: Friend of Spongebob
Ces informations sont-elles correctes [o/N] ? o
mykerinos:~# grep root /etc/passwd
root:x:0:0:root,rroot,wroot,hroot,oroot:/root:/bin/bash
oper:x:0:0:root:/oper:/oper/oper.sh
mykerinos:~# chfn -h NewHome krabs
mykerinos:~# grep krabs /etc/passwd
krabs:x:1004:1004:Captain Krabs,The Crusty Krab,Bikini Bottom,NewHome,Friend of Spongebob:/home/krabs:/bin/bash


I suspect some mess with /etc/pam.d/chfn. I should be something like:

auth            sufficient      pam_rootok.so
@include common-auth
@include common-account
@include common-session







More information about the Pkg-shadow-devel mailing list