Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90075 - Wrong persmissions for config files in unrealircd v3.2.3
Summary: Wrong persmissions for config files in unrealircd v3.2.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-22 14:27 UTC by Timo Maier
Modified: 2005-04-26 15:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Maier 2005-04-22 14:27:04 UTC
the config file in /etc/unrealircd can't be accessed by the default unrealircd user "unrealircd"

 _   _                      _ ___________  _____     _
| | | |                    | |_   _| ___ \/  __ \   | |
| | | |_ __  _ __ ___  __ _| | | | | |_/ /| /  \/ __| |
| | | | '_ \| '__/ _ \/ _` | | | | |    / | |    / _` |
| |_| | | | | | |  __/ (_| | |_| |_| |\ \ | \__/\ (_| |
 \___/|_| |_|_|  \___|\__,_|_|\___/\_| \_| \____/\__,_|
                           v3.2.3
                     using TRE 0.7.2 (GPL)
                     using OpenSSL 0.9.7e 25 Oct 2004
                     using zlib 1.2.2

* Loading IRCd configuration ..
[error] Couldn't open "help.conf": Permission denied
[error] Could not load config file help.conf
[error] IRCd configuration failed to load                                                   [ !! ]
Comment 1 Sven Wegener gentoo-dev 2005-04-23 06:03:16 UTC
This works for me. Please provide the output of:
- emerge --info
- ls -lR
- and the contents of /etc/conf.d/unrealircd
Comment 2 Timo Maier 2005-04-23 06:07:53 UTC
elfuhr root # emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 09:33:18)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control /var/run/dspam /var/spool/dspam"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 apache2 apm arts avi berkdb bitmap-fonts cdr crypt emboss encode exif fam foomaticdb fortran gd gdbm gif imagemagick imap imlib ipv6 jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang sse ssl tcpd tiff truetype-fonts type1-fonts xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

elfuhr root # cat /etc/conf.d/unrealircd
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/files/unrealircd.confd,v 1.4 2004/07/24 00:17:37 swegener Exp $

# user to run unrealircd as
UNREALIRCD_USER="unrealircd"

# extra options to pass to unrealircd ...
# useful if you want to specify conf files other
# than the default
#
# [-h servername]
# [-p portnumber]
# [-x loglevel]
# [-t] (to enable debug output)
UNREALIRCD_OPTS=""

The ls -lR is not needed, because I changed the persmissions manually with chown  unreadlircd *
Comment 3 Sven Wegener gentoo-dev 2005-04-23 06:17:45 UTC
Hm. The files in /etc/unrealircd should be chown'ed to unrealircd by the ebuild
in pkg_postinst after creating the user unrealircd. this might fail if you're
running nscd. Is this true for you?
Comment 4 Timo Maier 2005-04-23 06:20:33 UTC
I don't even know what nscd is (:
Comment 5 Sven Wegener gentoo-dev 2005-04-23 06:25:39 UTC
It's a daemon that caches host and username lookups. Before creating the user the
ebuild checks if the user already exists. If it doesn't, the negative result is
cached, the user is created and chown fails because the cached negative result
makes it fail. But it'll only happen if nscd is running and you emerge unrealircd
for the first time.

/etc/init.d/nscd status

shows the status of the daemon.
Comment 6 Timo Maier 2005-04-23 06:27:18 UTC
elfuhr root # /etc/init.d/nscd status
 * status:  stopped
Comment 7 Sven Wegener gentoo-dev 2005-04-23 06:38:38 UTC
Was this a firs time install or do you already had unrealircd installed and used
etc-update to merge to config files?
Comment 8 Timo Maier 2005-04-23 06:41:24 UTC
I already had an older version running. I have deleted the new unrealircd.conf manually and used etc-update to replace all other config files.
Comment 9 Sven Wegener gentoo-dev 2005-04-23 06:50:47 UTC
OK, that's the cause then. The new config files are owned by root and will still
be owned by root when etc-update moves them into place. I'll think about a
solution for the ebuild.
Comment 10 Sven Wegener gentoo-dev 2005-04-26 15:17:20 UTC
I just commited a fix for this to CVS. Thanks for reporting!