LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I do not get poppassd working in Fedora 11 (https://www.linuxquestions.org/questions/linux-newbie-8/i-do-not-get-poppassd-working-in-fedora-11-a-794191/)

braakiss 03-09-2010 06:30 AM

I do not get poppassd working in Fedora 11
 
Hi all,

I have installed roundcube in my web server and I need to set up poppassd for users can change their password.

I have followed all the steps to set it up but it does not work.

First, I edited /etc/services and I uncommented the lines

Code:

3com-tsmux    106/tcp        poppassd
3com-tsmux    106/udp        poppassd

Before those lines you can read:
# unfortunately the poppassd (Eudora) uses a port which has already
# been assigned to a different service. We list the poppassd as an
# alias here. This should work for programs asking for this service.
# (due to a bug in inetd the 3com-tsmux line is disabled)

but I do not understand right the meaning :(

Then I put in /etc/xinetd.d/poppassd the next:

Code:

service poppassd
{
        socket_type = stream
        protocol = tcp
        wait = no
        disable = no
        user = root
        flags = KEEPALIVE
        server = /usr/sbin/poppassd
        only_from = 127.0.0.1
        log_on_success  += USERID
        log_on_failure  += USERID
}

And I restart xinetd.

It is supossed that it should work now if I do:

telnet localhost 106, but I get:

Code:

Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

netstat -an | grep '106' returns only:
Code:

unix  3      [ ]        STREAM    CONNECTED    632106 /var/run/dbus/system_bus_socket
and

ps aux | grep poppassd says:

Code:

root    21559  0.0  0.0  4188  696 pts/0    S+  13:18  0:00 grep poppassd
so, poppassd is running but not listening any port?

Code:

nmap localhost

Starting Nmap 5.00 ( http://nmap.org ) at 2010-03-09 13:23 CET
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 989 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
22/tcp    open  ssh
25/tcp    open  smtp
80/tcp    open  http
81/tcp    open  hosts2-ns
111/tcp  open  rpcbind
631/tcp  open  ipp
873/tcp  open  rsync
3306/tcp  open  mysql
3551/tcp  open  unknown
55555/tcp open  unknown

No firewall entries:

Code:

iptables -nL

Chain INPUT (policy ACCEPT)
target    prot opt source              destination

Chain FORWARD (policy ACCEPT)
target    prot opt source              destination

Chain OUTPUT (policy ACCEPT)
target    prot opt source              destination

If I run the command : /usr/sbin/poppassd it runs properly. I can change password, etc...

I do not know what to do. Logs does not say anything neither.

Anybody can help me?

Thanks in advance

jamescondron 03-09-2010 06:42 AM

Its not running at all, the only line in your ps out put is the grep you did to find it. The /etc/services instruction was an odd one, it only means that any connection to port 106 will show up as poppassd instead of 106.

braakiss 03-09-2010 06:50 AM

So, it is not running. may the problem be in the poppassd file? I have been looking on the internet for hours but I do not find anything. Always I find the same examples.

jamescondron 03-09-2010 06:58 AM

Okay, lets take this slowly. Where are the instructions you have been using? Can you link me?

braakiss 03-09-2010 07:06 AM

I have been using,

http://www.netwinsite.com/poppassd/
http://blog.irwan.name/?p=228
http://www.ecualug.org/2008/09/05/co..._su_contrasena

and I have been having a look in others sites but with the same luck.

Thank you for your help.

jamescondron 03-09-2010 07:20 AM

Okay, looks simple enough; which one did you follow? Your services looks different to the ones they give you ;) (And to mine)

It looks like you're following too many different instructions here. Lets see if we can simplify:

You've downloaded change pass and put it in the Squirrel Mail plugin dir
Download the Poppassd and compile. Copy this binary into /usr/sbin
Add it to xinet.d
kill -HUP inetd # Hang Up (?); will restart it
Add it in Squirrel Mail.

braakiss 03-09-2010 07:45 AM

Actually, I have used this link http://www.netwinsite.com/poppassd/ to download and compile it. But that link talk about inetd instead of xinetd which fedora 11 uses, so I looked for an example with xinetd and found http://blog.irwan.name/?p=228.
As It did not work I look for other pages.

I am ussing Roundcube not Squirrelmail :) but it is the same.

Quote:

You've downloaded change pass and put it in the Squirrel Mail plugin dir
Done, in RoundCube I see the password tab.

Quote:

Download the Poppassd and compile. Copy this binary into /usr/sbin
Done, if I run /usr/bin/poppassd it works

Quote:

Add it to xinet.d
Do I put in /etc/xinetd.d/poppassd what http://blog.irwan.name/?p=228 says?

so:

Code:

# default: off
# description: The POPPASSD service allows remote users to change their
# password remotely via Eudora or NUPOP using a network
# protocol on port 106.

service poppassd
{
      disable = no
      socket_type            = stream
      wait                    = no
      user                    = root
      server                  = /usr/sbin/poppassd
      log_on_success          += USERID
      log_on_failure          += USERID
}


Code:

kill -HUP inetd # Hang Up (?); will restart it
Service inetd does not exist so I do not have to kill it, do I? :)

Well, poppassd is not running yet. I suposse the problem is in /etc/services or /etc/xinetx.d/poppassd.

any idea?

Thanks!!

jamescondron 03-09-2010 07:47 AM

Oh sorry, you said you were using Roundcube.

inetd should be running, yeah or xinet or whatever Fedora is using; this kill is to get it to restart and pull everything back in so it sees the change in the configs.

braakiss 03-09-2010 10:51 AM

I restart the xinetd service, I have even restarted the server and nothing yet.

Waht else could I try?

Thanks

jamescondron 03-09-2010 10:59 AM

I wonder, the basic; did you try a reboot? Another daft basic question, did you consider getting it from a repository? Is there one? http://rpm.pbone.net/index.php3?stat...assd&srodzaj=3 suggests there is

braakiss 03-09-2010 11:21 AM

I already rebooted it and yesterday I downloaded a version to fedora 9 from the repository that you have just put, http://rpm.pbone.net/index.php3?stat...assd&srodzaj=3, but it did not work either.

let's see google tell me something :)

Thank very much


All times are GMT -5. The time now is 04:28 PM.