Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57214 - djbdns: tinydns-setup create wrong user
Summary: djbdns: tinydns-setup create wrong user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Lowest minor (vote)
Assignee: Jared H. Hudson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-15 12:10 UTC by Ng, Wey-Han
Modified: 2004-08-23 15:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix tinydns-setup useradd line (tinydns-setup.patch,348 bytes, patch)
2004-07-15 12:12 UTC, Ng, Wey-Han
Details | Diff
Fix tinydns-setup useradd line and echo line as well. (tinydns-setup.patch,453 bytes, patch)
2004-07-15 12:17 UTC, Ng, Wey-Han
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ng, Wey-Han 2004-07-15 12:10:44 UTC
tinydns-setup creates a dnscache user instead of a tinydns user if tinydns user does not exist in the password file. Patch provided below:

--- /usr/bin/tinydns-setup	2004-07-10 03:14:38.000000000 +0800
+++ tinydns-setup	2004-07-17 03:04:07.000000000 +0800
@@ -58,7 +58,7 @@
 	then
 		echo ">>> Adding user dnscache ..."
 		/usr/sbin/useradd -d /dev/null -s /bin/false -g nofiles \
-			dnscache &> /dev/null
+			tinydns &> /dev/null
 	fi
 
 	/usr/bin/grep dnslog /etc/passwd &> /dev/null
Comment 1 Ng, Wey-Han 2004-07-15 12:12:49 UTC
Created attachment 35496 [details, diff]
Fix tinydns-setup useradd line
Comment 2 Ng, Wey-Han 2004-07-15 12:17:28 UTC
Created attachment 35497 [details, diff]
Fix tinydns-setup useradd line and echo line as well.

Missed the echo line in the earlier patch.
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-07-15 13:54:18 UTC
this is great, but what package is this for please?
Comment 4 Ng, Wey-Han 2004-07-15 22:03:05 UTC
Oops! This is for djbdns. tinydns-setup is a gentoo specific addition to this package for setting up the dns server after installation. Current version I am using is 1.05-r12 but I believe this problem might be there in all the version that have this tool.

Also some more useful information about the problem. Oops again!
The problem does not show up normally because the tinydns user is added in the emerge process, so that part of the code usually don't execute. The problem will only serface if for some reason the tinydns user is removed from the passwd file and this script is run.
Comment 5 Jared H. Hudson (RETIRED) gentoo-dev 2004-08-23 15:27:11 UTC
Thanks for the bug report. This has been fixed.