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

Bug#36607: nscd breaks adduser



Package: nscd
Version: 2.1.1-1

the follow bug has been seen with 2.1.1-1 and earlier (2.1.1-0.2)

looks like a cache/timing problem...nscd hasn't noticed that the group
foo exists yet.

with nscd running:

	# adduser foo
	Adding user foo...
	Adding new group foo (9136).
	Adding new user foo (9136) with group foo.
	useradd: unknown group foo
	adduser: `useradd -d /home/foo -g foo -s /bin/bash -u 9136 foo' returned
	error code 1536.  Aborting.
	Cleaning up.
	Removing user `foo'.
	userdel: user foo does not exist
	Removing group `foo'.
	groupdel: group foo does not exist

now clean up

	# userdel foo
	userdel: user foo does not exist
	# groupdel foo

now kill nscd and try again.

	# /etc/init.d/nscd stop
	Stopping Name Service Cache Daemon: nscd.
	# adduser foo
	Adding user foo...
	Adding new group foo (9136).
	Adding new user foo (9136) with group foo.
	Creating home directory /home/foo.
	Copying files from /etc/skel
	Changing password for foo
	Enter the new password (minimum of 5, maximum of 8 characters)
	Please use a combination of upper and lower case letters and numbers.
	New password:

(at this point i pressed ^C to cancel the adduser)

	adduser: `passwd foo' returned error code 2.  Aborting.
	Cleaning up.
	Removing directory `/home/foo'
	Removing user `foo'.
	Removing group `foo'.


i don't actually need nscd on this machine, so i just removed the package.

craig

--
craig sanders


Reply to: