Re: Limits in /etc/group and useradd infinity loop
Yesterday i'm found the same problem - useradd stop working. This is small workaround, which help me to solve problem: 1. delete string with "GROUPS=" from /etc/default/useradd (i'm found, that all new accounts belong to additional groups "uucp, dialout, audio, video", but i don't need this) After that all created users well be belong to default group "users" 2. create new "fake" group - /usr/sbin/groupadd fake 3. move existing users from additional groups "uucp, dialout, audio, video" to new group - /usr/sbin/usermod -G fake $username (i wrote small perl-script, which make this operation) 4. remove "fake" group - /usr/sbin/groupdel fake 5. play with /usr/sbin/useradd many-many times! :) PS. Sorry for my english... ------------ Vyacheslav S. Kulchitskee --- а?таматычна Ваш легкий поиск ТУТ! http://go.tut.by
HI! Vyacheslav, thanks for your investigations. Yes, I had a group with more than 80 members. useradd does not hang when truncating this group. I can't understand why useradd reads this group even when not using it in useradd command-line nor /etc/default/useradd. useradd seems to be quite buggy... Ciao, Michael. Vyacheslav S.Kulchitskee wrote:
Yesterday i'm found the same problem - useradd stop working.
This is small workaround, which help me to solve problem:
1. delete string with "GROUPS=" from /etc/default/useradd (i'm found, that all new accounts belong to additional groups "uucp, dialout, audio, video", but i don't need this) After that all created users well be belong to default group "users"
2. create new "fake" group - /usr/sbin/groupadd fake
3. move existing users from additional groups "uucp, dialout, audio, video" to new group - /usr/sbin/usermod -G fake $username (i wrote small perl-script, which make this operation)
4. remove "fake" group - /usr/sbin/groupdel fake
5. play with /usr/sbin/useradd many-many times! :)
PS. Sorry for my english...
participants (2)
-
Michael Ströder
-
Vyacheslav S.Kulchitskee