On Tuesday 21 September 2010 13:04:31 Harald Becker wrote:
> Sorry wrong file ... too many open windows :-(
> 
>  Ok, I did a quick rewrite of deluser.c ... that seems to work, but
> possibly messes with feature macros. I do not have the time to check
> this or do thorough testing ...
> 
> Looks like the old code tried to remove user NAME from group GROUP in
> files /etc/passwd and /etc/shadow :-(
> 
> 
> 

Hi,
i've tested the current version and it does work for me on x86 as is:

./busybox
BusyBox v1.18.0.git (2010-09-21 13:37:15 CEST) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.

adduser prova
grep prova /etc/passwd
prova:x:1004:1006:,,,:/home/prova:/bin/bash
grep prova /etc/shadow
prova:$6$XjY2vUPe$4lwcJjaa7ahFZZ:14873:0:99999:7:::
grep prova /etc/group
prova:x:1006:
grep prova /etc/gshadow
prova:!::
addgroup test
Adding group `test' (GID 1007) ...
Done.
adduser prova test
Adding user `prova' to group `test' ...
Adding user prova to group test
Done.

debian:/home/tito/Desktop/busybox# grep test /etc/group
test:x:1007:prova
debian:/home/tito/Desktop/busybox# grep test /etc/gshadow
test:!::prova

./busybox delgroup prova test

grep test /etc/gshadow
test:!::
grep test /etc/group
test:x:1007:


There must be some other problem leading to trouble on your system.

Ciao,
Tito
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to