Quoting Oleg Krivosheev <[EMAIL PROTECTED]>:

> Hi, All
>
> i'm running potato and just tried to upgrated telnetd to 0.14-1
> and this is what i got:
>
> Setting up telnetd (0.14-1) ...
> adduser: Warning: The home dir you specified already exists.
> Adding system user telnetd...
> Adding new group telnetd (101).
> Adding new user telnetd (101) with group telnetd.
> useradd: unknown group telnetd
> adduser: `useradd -d /usr/lib/telnetd -g telnetd -s /bin/false -u 101
> telnetd' returned error code 1536.  Aborting.
> Cleaning up.
> Removing user `telnetd'.
> userdel: user telnetd does not exist
> Removing group `telnetd'.
> groupdel: group telnetd does not exist
> dpkg: error processing telnetd (--configure):
>
>
>
> Any ideas why useradd died? What error 1536 means

More than likely you have nscd running. I'm unaware of a way to circumvent this
problem other than running /etc/init.d/nscd stop before doing upgrades that add
new users/groups. You should really (according to the description) only have it
loaded if you are using slow services for user/group files (eg. LDAP, NIS).
Basically (as I understand it), nscd caches passwd, group and host entries to
speed up these searches, consequentially calling useradd doesn't refresh the
cache when it adds a new passwd/group entry. Therefore, when the user is added
it isn't aware of the group that was previously created. I'm not sure if this is
a bug or a "feature". And if it is a bug, whether it is against useradd or nscd.

--
Ashley Clark

Reply via email to