Bug#558462: rabbitmq-server logs in as rabbitmq and hangs on pam_mount password prompt

2009-12-02 Thread David Wragg
 [...]
 zeus:~# cd /var/log/rabbitmq/
 zeus:/var/log/rabbitmq# ls -la
 total 8
 drwxr-xr-x  2 rabbitmq rabbitmq   42 2009-11-28 22:16 .
 drwxr-xr-x 15 root root 4096 2009-11-28 22:16 ..
 -rw-r--r--  1 root root   31 2009-11-28 22:16 startup_err
 -rw-r--r--  1 root root0 2009-11-28 22:16 startup_log
 zeus:/var/log/rabbitmq# cat startup_err 
 reenter password for pam_mount:zeus:/var/log/rabbitmq# 

 The home directories on this box are mounted over CIFS, so I'm using
 pam-mount and the option is required.

 Is there something that can be done so rabbitmq doesn't go through PAM
 and doesn't get hung up on trying to mount some remote filesystems?

I don't think the rabbitmq packages are doing anything unusual, and I
wonder whether this affects any packages with init scripts that use
su, directly or indirectly, to start a daemon.  So it might be a case
of well don't do that.  I find it strange that pam_mount doesn't
exclude system accounts (the rabbitmq user is created as a system
account).

One possible fix might be to edit /etc/pam.d/su to remove the
pam_mount lines.

David



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#558462: rabbitmq-server logs in as rabbitmq and hangs on pam_mount password prompt

2009-12-02 Thread Florin Iucha
On Wed, Dec 02, 2009 at 10:29:25AM +, David Wragg wrote:
  [...]
  zeus:~# cd /var/log/rabbitmq/
  zeus:/var/log/rabbitmq# ls -la
  total 8
  drwxr-xr-x  2 rabbitmq rabbitmq   42 2009-11-28 22:16 .
  drwxr-xr-x 15 root root 4096 2009-11-28 22:16 ..
  -rw-r--r--  1 root root   31 2009-11-28 22:16 startup_err
  -rw-r--r--  1 root root0 2009-11-28 22:16 startup_log
  zeus:/var/log/rabbitmq# cat startup_err 
  reenter password for pam_mount:zeus:/var/log/rabbitmq# 
 
  The home directories on this box are mounted over CIFS, so I'm using
  pam-mount and the option is required.
 
  Is there something that can be done so rabbitmq doesn't go through PAM
  and doesn't get hung up on trying to mount some remote filesystems?
 
 I don't think the rabbitmq packages are doing anything unusual, and I
 wonder whether this affects any packages with init scripts that use
 su, directly or indirectly, to start a daemon.  So it might be a case
 of well don't do that.  I find it strange that pam_mount doesn't
 exclude system accounts (the rabbitmq user is created as a system
 account).
 
 One possible fix might be to edit /etc/pam.d/su to remove the
 pam_mount lines.

The customary setup is to add pam_mount to common-auth and
common-session, so it's hard to un-include them from su alone.

It's clear that rabbitmq is not at fault here, so you can close this
bug.

Thanks for the help,
florin

-- 
Bruce Schneier expects the Spanish Inquisition.
  http://geekz.co.uk/schneierfacts/fact/163


pgphR3xRCv00C.pgp
Description: PGP signature


Bug#558462: rabbitmq-server logs in as rabbitmq and hangs on pam_mount password prompt

2009-11-28 Thread Florin Iucha
Package: rabbitmq-server
Version: 1.7.0-3
Severity: important


I am trying to install rabbitmq-server on my debian testing/unstable amd64
machine and I am having difficulties.

This is the output from apt-get install rabbitmq-server:

The following NEW packages will be installed:
  rabbitmq-server
0 upgraded, 1 newly installed, 0 to remove and 279 not upgraded.
Need to get 0B/469kB of archives.
After this operation, 967kB of additional disk space will be used.
Selecting previously deselected package rabbitmq-server.
(Reading database ... 166501 files and directories currently installed.)
Unpacking rabbitmq-server (from .../rabbitmq-server_1.7.0-3_all.deb) ...
Processing triggers for man-db ...
Setting up rabbitmq-server (1.7.0-3) ...
Adding group `rabbitmq' (GID 121) ...
Done.
Adding system user `rabbitmq' (UID 112) ...
Adding new user `rabbitmq' (UID 112) with group `rabbitmq' ...
Not creating home directory `/var/lib/rabbitmq'.
Starting rabbitmq-server: 

At this point, dpkg waits forever.

The only thing in /var/log/rabbitmq is:

zeus:~# cd /var/log/rabbitmq/
zeus:/var/log/rabbitmq# ls -la
total 8
drwxr-xr-x  2 rabbitmq rabbitmq   42 2009-11-28 22:16 .
drwxr-xr-x 15 root root 4096 2009-11-28 22:16 ..
-rw-r--r--  1 root root   31 2009-11-28 22:16 startup_err
-rw-r--r--  1 root root0 2009-11-28 22:16 startup_log
zeus:/var/log/rabbitmq# cat startup_err 
reenter password for pam_mount:zeus:/var/log/rabbitmq# 

The home directories on this box are mounted over CIFS, so I'm using
pam-mount and the option is required.

Is there something that can be done so rabbitmq doesn't go through PAM
and doesn't get hung up on trying to mount some remote filesystems?

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (700, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rabbitmq-server depends on:
ii  adduser3.111 add and remove users and groups
ii  erlang-base1:13.b.2.1-dfsg-1 Erlang/OTP virtual machine and bas
ii  erlang-mnesia  1:13.b.2.1-dfsg-1 Erlang/OTP distributed relational/
ii  erlang-os-mon  1:13.b.2.1-dfsg-1 Erlang/OTP operating system monito
ii  erlang-ssl 1:13.b.2.1-dfsg-1 Erlang/OTP implementation of SSL
ii  logrotate  3.7.8-4   Log rotation utility

rabbitmq-server recommends no packages.

rabbitmq-server suggests no packages.

-- no debconf information


pgpEGm8tGiAx0.pgp
Description: PGP signature