Re: [gentoo-user] Unable to start Dante SOCKS server
2005/12/20, Rumen Yotov [EMAIL PROTECTED]: 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.confCheck 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
[gentoo-user] Unable to start Dante SOCKS server
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 Any ideas? Thanks in advance, best regards Jose
Re: [gentoo-user] Unable to start Dante SOCKS server
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 Any ideas? Thanks in advance, best regards JoseHi,Seems it wants to run as user ID 101, so check your config files, whatever they are. Run grep 101 /etc/passwd to see which user it wants to be, or change the config.No experience with 'dante' though. The user with id 101 is indeed the sockd user: proxy ~ # grep 101 /etc/passwd sockd:x:101:2:added by portage for dante:/etc/socks:/bin/false So I guess it must be doing something with that user that can't be done... Thanks for your help, best regards Jose