Hi,
On (20/12/05 17:35), Jose Gonzalez Gomez wrote:
> 2005/12/20, Rumen Yotov <[EMAIL PROTECTED]>:
> >
> > On (20/12/05 13:59), Jose Gonzalez Gomez wrote:
> > > Hi there,
> > >
> > > I've just emerged Dante, and I'm trying to start it, but I'm getting the
> > > following error and I don't know what's causing it...
> > >
> > > proxy ~ # /etc/init.d/dante-sockd start
> > > Dec 20 15:01:20 (1135087280) sockd[0]: socks_seteuid(): old: 0, new: 101
> > > Dec 20 15:01:20 (1135087280) sockd[0]: socks_reseteuid(): current: 101,
> > new:
> > > 0
> > > Dec 20 14:01:20 (1135087280) sockd[0]: socks_reseteuid(): getpwuid(0):
> > > Permission denied (errno = 13)
> > > Dec 20 14:01:20 (1135087280) sockd[0]: sockdexit(): terminating
> > > * Something is wrong with your configuration file
> > > * for more info, see: man sockd.conf
Check this file "/etc/sockd.conf (hint)" must be somewhere under /etc but i can't check
as i don't have 'dante' installed. Read "man sockd.conf" too.
Usually some programs (most often daemons) start as root and later fork/switch the process to other user ID.
Main purpose is to gain more security if the service is compromised. e.x. apache,ftp & others.
Check the above man page and the config file itself (read the comments, if any).
Ok, I've isolated the cause of this:
Dante has three users to be configured in the config file: user.privileged, user.notprivileged and user.libwrap. If only one of them is different than root, the service cannot be started. I guess this must be some bug in the Gentoo ebuild that prevents the daemon running with the sockd user, at least in the user.notprivileged case.
Anybody can confirm this?
Thanks, best regards
Jose