[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[BUG ?] adduser supprime le groupe en cas d'erreur



Salut,

En woody, adduser version 3.45.


--> je crée un groupe bind

~# addgroup --gid 210 bind
Adding group bind (210)...
Done.

~# grep bind /etc/group
bind:x:210:


--> je créé l'utilisateur bind avec bind comme groupe principal
--> et je me plante dans le mot de passe

~# adduser --uid 210 --ingroup bind --home /local/etc/bind bind 
adduser: Warning: The home dir you specified already exists.
Adding user bind...
Adding new user bind (210) with group bind.
Home directory /local/etc/bind already exists.  Not copying from
/etc/skel
Enter new UNIX password: 
Retype new UNIX password: 
No password supplied
Enter new UNIX password: 
Retype new UNIX password: 
No password supplied
Enter new UNIX password: 
Retype new UNIX password: 
No password supplied
passwd: Authentication token manipulation error
adduser: `passwd bind' returned error code 10.  Aborting.
Cleaning up.
Removing user `bind'.


--> le groupe a été supprimé avec l'utilisateur !

~# grep bind /etc/group


--> par conséquent :

~# adduser --uid 210 --ingroup bind --home /local/etc/bind bind
adduser: Warning: The home dir you specified already exists.
adduser: The group `bind' doesn't exist.


A noter que le groupe n'est pas supprimé s'il y a déjà un utilisateur
dedans.

Bug ou fonctionnalité ?


-- 
Charles



Reply to: