Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help

2005-11-10 Thread Ritesh Raj Sarraf
On Sunday October 23 2005 08:43, Todd Troxell wrote:
 On Sat, Oct 15, 2005 at 06:34:19PM -0400, Todd Troxell wrote:
  On Thu, Oct 13, 2005 at 04:10:57PM +0530, Ritesh Raj Sarraf wrote:
   On Thursday 06 Oct 2005 02:13, Todd Troxell wrote:
How does this make it clear that adduser is not the culprit?
  
   If adduser was to be the culprit, it should have broken the
   installation of logcheck (the stable version) also.
  
Obviously there is some difference between the installation if it now
works. Can you still reproduce the breakage?
  
   I can still reproduce it with the versions present in testing and
   unstable branch. I needed logcheck badly and the one in sarge works
   fine so I used that.
   So if the version in sarge works and the versions in testing and
   unstable don't work, it makes it clear that there's some change in the
   pre/post installation script of logcheck which is breaking, not adduser
   because the same adduser works with logcheck from stable.
 
  Ok, it looks like the adduser invocation changed underneath our feet. 
  Can you please remove the logcheck user and then compare the output of
  these two commands:
 
  adduser --quiet --system --no-create-home --group --home
  /var/lib/logcheck logcheck
 
  adduser --quiet --system --no-create-home --group logcheck

 Pushing this change for today's release.  Please re-open this bug if you
 still have the problem.

 Cheers,

Apologies for not being able to reply you in time.

Since my last post, I had put my logcheck (the stable version) packages on 
hold. I upgraded them today to version 1.2.41 and they look to be working 
fine. Maybe you can mark the bug as done.

Will bug you again if I find something abnormal. :-)
Thanks for all your help.

Regards,

rrs
-- 
Ritesh Raj Sarraf
RESEARCHUT -- http://www.researchut.com
Stealing logic from one person is plagiarism, stealing from many is 
research.
Necessity is the mother of invention.

-- 
Ritesh Raj Sarraf
RESEARCHUT -- http://www.researchut.com
Gnupg Key ID: 04F130BC
Stealing logic from one person is plagiarism, stealing from many is 
research.
Necessity is the mother of invention.


pgp2q4oC0TFsH.pgp
Description: PGP signature


Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help

2005-10-22 Thread Todd Troxell
On Sat, Oct 15, 2005 at 06:34:19PM -0400, Todd Troxell wrote:
 On Thu, Oct 13, 2005 at 04:10:57PM +0530, Ritesh Raj Sarraf wrote:
  On Thursday 06 Oct 2005 02:13, Todd Troxell wrote:
   How does this make it clear that adduser is not the culprit?
  
  
  If adduser was to be the culprit, it should have broken the installation of 
  logcheck (the stable version) also.
  
   Obviously there is some difference between the installation if it now
   works. Can you still reproduce the breakage?
  
  I can still reproduce it with the versions present in testing and unstable 
  branch. I needed logcheck badly and the one in sarge works fine so I used 
  that.
  So if the version in sarge works and the versions in testing and unstable 
  don't work, it makes it clear that there's some change in the pre/post 
  installation script of logcheck which is breaking, not adduser because the 
  same adduser works with logcheck from stable.
 
 Ok, it looks like the adduser invocation changed underneath our feet.  Can
 you please remove the logcheck user and then compare the output of these two 
 commands:
 
 adduser --quiet --system --no-create-home --group --home /var/lib/logcheck
 logcheck
 
 adduser --quiet --system --no-create-home --group logcheck

Pushing this change for today's release.  Please re-open this bug if you
still have the problem.

Cheers,
-- 
Todd Troxell
http://rapidpacket.com/~xtat


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help

2005-10-15 Thread Todd Troxell
On Thu, Oct 13, 2005 at 04:10:57PM +0530, Ritesh Raj Sarraf wrote:
 On Thursday 06 Oct 2005 02:13, Todd Troxell wrote:
  How does this make it clear that adduser is not the culprit?
 
 
 If adduser was to be the culprit, it should have broken the installation of 
 logcheck (the stable version) also.
 
  Obviously there is some difference between the installation if it now
  works. Can you still reproduce the breakage?
 
 I can still reproduce it with the versions present in testing and unstable 
 branch. I needed logcheck badly and the one in sarge works fine so I used 
 that.
 So if the version in sarge works and the versions in testing and unstable 
 don't work, it makes it clear that there's some change in the pre/post 
 installation script of logcheck which is breaking, not adduser because the 
 same adduser works with logcheck from stable.

Ok, it looks like the adduser invocation changed underneath our feet.  Can
you please remove the logcheck user and then compare the output of these two 
commands:

adduser --quiet --system --no-create-home --group --home /var/lib/logcheck
logcheck

adduser --quiet --system --no-create-home --group logcheck

Thanks,
-- 
Todd Troxell
http://rapidpacket.com/~xtat


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help

2005-10-13 Thread Ritesh Raj Sarraf
On Thursday 06 Oct 2005 02:13, Todd Troxell wrote:
 How does this make it clear that adduser is not the culprit?


If adduser was to be the culprit, it should have broken the installation of 
logcheck (the stable version) also.

 Obviously there is some difference between the installation if it now
 works. Can you still reproduce the breakage?

I can still reproduce it with the versions present in testing and unstable 
branch. I needed logcheck badly and the one in sarge works fine so I used 
that.
So if the version in sarge works and the versions in testing and unstable 
don't work, it makes it clear that there's some change in the pre/post 
installation script of logcheck which is breaking, not adduser because the 
same adduser works with logcheck from stable.

Regards,

rrs
-- 
Ritesh Raj Sarraf
RESEARCHUT -- http://www.researchut.com
Gnupg Key ID: 04F130BC
Stealing logic from one person is plagiarism, stealing from many is 
research.
Necessity is the mother of invention.


pgpeaCfkxVZ04.pgp
Description: PGP signature


Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help

2005-10-05 Thread Todd Troxell
On Tue, Oct 04, 2005 at 11:26:06PM +0530, Ritesh Raj Sarraf wrote:
 Hi Max and Todd,
 
 Thought of giving some more information to this dead bug report which still 
 hasn't been reproduced on your machines.
 
 This now is a valid bug because today after installing on the same laptop 
 with 
 the same environment (no changes at all), the stable release of logcheck 
 (version 1.2.39), the installation went fine.
 
 So it should be clear now that adduser is not the culprit. I still think 
 the 
 postinst script is where we should hunt for the bug.

How does this make it clear that adduser is not the culprit?

Obviously there is some difference between the installation if it now works.
Can you still reproduce the breakage?

-- 
Todd Troxell
http://rapidpacket.com/~xtat


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help

2005-09-22 Thread Ritesh Raj Sarraf
On Thursday 22 Sep 2005 02:33, maximilian attems wrote:
  i guess you interrupt the postrm or similar to get into similar
  troubles.

 unable to reproduce with normal purge and reinstall cycles.
 a new install seemed to have cured the problems of the bug reporters.
 as it appears only when interrupting the postinstall
 closing this strange bug.


After you mentioned it being fixed, I tried installing the package again but 
got the same problem. I wonder on what grounds you are closing this bug.

Here's what I've found again:

[EMAIL PROTECTED]:~ # apt-get install logcheck
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  logcheck-database logtail
Suggested packages:
  syslog-summary
The following NEW packages will be installed:
  logcheck logcheck-database logtail
0 upgraded, 3 newly installed, 0 to remove and 334 not upgraded.
Need to get 145kB of archives.
After unpacking 1020kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.debian.org testing/main logtail 1.2.41 [29.8kB]
Get:2 http://ftp.debian.org testing/main logcheck-database 1.2.41 [67.5kB]
Get:3 http://ftp.debian.org testing/main logcheck 1.2.41 [47.9kB]
Fetched 145kB in 19s (7620B/s)
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Preconfiguring packages ...
Selecting previously deselected package logtail.
(Reading database ... 237487 files and directories currently installed.)
Unpacking logtail (from .../logtail_1.2.41_all.deb) ...
Selecting previously deselected package logcheck-database.
Unpacking logcheck-database (from .../logcheck-database_1.2.41_all.deb) ...
Selecting previously deselected package logcheck.
Unpacking logcheck (from .../logcheck_1.2.41_all.deb) ...
Setting up logtail (1.2.41) ...
Setting up logcheck-database (1.2.41) ...

Setting up logcheck (1.2.41) ...
adduser: The user `logcheck' does not exist.
chown: `logcheck:logcheck': invalid user
chown: `logcheck:logcheck': invalid user



And here's the entries in syslog logged.

Sep 22 22:37:30 laptop useradd[19560]: new user: name=logcheck, uid=120, 
gid=118, home=/var/lib/logcheck, shell=/bin/false
Sep 22 22:37:30 laptop chage[19561]: changed password expiry for logcheck


HTH,

rrs
-- 
Ritesh Raj Sarraf
RESEARCHUT -- http://www.researchut.com
Gnupg Key ID: 04F130BC
Stealing logic from one person is plagiarism, stealing from many is 
research.
Necessity is the mother of invention.


pgp4pUaaeQE07.pgp
Description: PGP signature


Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help

2005-09-07 Thread Ritesh Raj Sarraf
On Wednesday 07 Sep 2005 09:04, Todd Troxell wrote:
 I have tested the following scenarios and have been unable to reproduce
 this.

 -fresh install on unstable
 -dist-upgrade from stable version
 -dist-upgrade from woody version

 It will be helpful to know if your adduser is functioning correctly.

Please don't top post.

This is what my adduser program's description says:
Description: Add and remove users and groups

Are there other adduesr program also ?

There messages might help now.

[EMAIL PROTECTED]:~ # apt-get remove --purge logcheck logcheck-database logtail
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  logcheck* logcheck-database* logtail*
0 upgraded, 0 newly installed, 3 to remove and 294 not upgraded.
Need to get 0B of archives.
After unpacking 1020kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 241152 files and directories currently installed.)
Removing logcheck ...
Purging configuration files for logcheck ...
Removing logcheck-database ...
Purging configuration files for logcheck-database ...
Removing logtail ...

This is what syslog logged at the same time.

Sep  7 14:07:35 laptop userdel[28158]: delete user `logcheck'
Sep  7 14:07:35 laptop userdel[28158]: removed group `logcheck' owned by 
`logcheck'
Sep  7 14:07:35 laptop userdel[28168]: delete user `logcheck'
Sep  7 14:07:35 laptop userdel[28168]: removed group `logcheck' owned by 
`logcheck'


Now I do the installation again.

[EMAIL PROTECTED]:~ # apt-get install logcheck
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  logcheck-database logtail
Suggested packages:
  syslog-summary
The following NEW packages will be installed:
  logcheck logcheck-database logtail
0 upgraded, 3 newly installed, 0 to remove and 294 not upgraded.
Need to get 145kB of archives.
After unpacking 1020kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.debian.org testing/main logtail 1.2.41 [29.8kB]
Get:2 http://ftp.debian.org testing/main logcheck-database 1.2.41 [67.5kB]
Get:3 http://ftp.debian.org testing/main logcheck 1.2.41 [47.9kB]
Fetched 145kB in 22s (6529B/s)
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Preconfiguring packages ...
Selecting previously deselected package logtail.
(Reading database ... 240988 files and directories currently installed.)
Unpacking logtail (from .../logtail_1.2.41_all.deb) ...
Selecting previously deselected package logcheck-database.
Unpacking logcheck-database (from .../logcheck-database_1.2.41_all.deb) ...
Selecting previously deselected package logcheck.
Unpacking logcheck (from .../logcheck_1.2.41_all.deb) ...
Setting up logtail (1.2.41) ...
Setting up logcheck-database (1.2.41) ...

Setting up logcheck (1.2.41) ...
useradd: unknown group logcheck
adduser: `/usr/sbin/useradd -d /var/lib/logcheck -g logcheck -s /bin/false -u 
118 logcheck' returned error code 6.  Aborting.
Cleaning up.
Removing user `logcheck'.
userdel: user logcheck does not exist
Removing group `logcheck'.
groupdel: group logcheck does not exist
adduser: The user `logcheck' does not exist.
chown: `logcheck:logcheck': invalid user
chgrp: invalid group name `logcheck'
chown: `logcheck:logcheck': invalid user

And this is the syslog entry at this time.

Sep  7 14:14:36 laptop groupadd[28457]: new group: name=logcheck, gid=118


Maybe all this can help you guys

rrs
-- 
Ritesh Raj Sarraf
RESEARCHUT -- http://www.researchut.com
Gnupg Key ID: 04F130BC
Stealing logic from one person is plagiarism, stealing from many is 
research.
Necessity is the mother of invention.


pgpzKoYXJ3db6.pgp
Description: PGP signature


Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help

2005-09-07 Thread Todd Troxell
On Wed, Sep 07, 2005 at 02:18:27PM +0530, Ritesh Raj Sarraf wrote:
 On Wednesday 07 Sep 2005 09:04, Todd Troxell wrote:
  I have tested the following scenarios and have been unable to reproduce
  this.
 
  -fresh install on unstable
  -dist-upgrade from stable version
  -dist-upgrade from woody version
 
  It will be helpful to know if your adduser is functioning correctly.
 Are there other adduesr program also ?

There is adduser-ng, but we call adduser specifically.  I am puzzled as to
why the identical command would work from a shell but not in our postinst.

I have tried again on unstable, and I am still unable to reproduce.


-- 
[   Todd J. Troxell ,''`.
  Student, Debian GNU/Linux Developer, SysAdmin, Geek  : :' :
  http://debian.org || http://rapidpacket.com/~xtat`. `' 
 `- ]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help

2005-09-06 Thread Todd Troxell
On Wed, Sep 07, 2005 at 01:21:23AM +0530, Ritesh Raj Sarraf wrote:
 Error 3:
 This error was during installation
 
 Setting up logcheck (1.2.41) ...
 useradd: unknown group logcheck
 adduser: `/usr/sbin/useradd -d /var/lib/logcheck -g logcheck -s
 /bin/false -u 118 logcheck' returned error code 6.  Aborting.

Hmm.  The 6 returned is from useradd(8) and it indicates:
#define E_NOTFOUND  6   /* specified group doesn't exist */

I'm still not sure what's going on.  Maybe something changed in a new version
of adduser?

-- 
[   Todd J. Troxell ,''`.
  Student, Debian GNU/Linux Developer, SysAdmin, Geek  : :' :
  http://debian.org || http://rapidpacket.com/~xtat`. `' 
 `- ]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#312393: [Logcheck-devel] Bug#312393: logcheck: Some more information that might help

2005-09-06 Thread Todd Troxell
I have tested the following scenarios and have been unable to reproduce this.

-fresh install on unstable
-dist-upgrade from stable version
-dist-upgrade from woody version

It will be helpful to know if your adduser is functioning correctly.


On Wed, Sep 07, 2005 at 01:21:23AM +0530, Ritesh Raj Sarraf wrote:
 Package: logcheck
 Version: 1.2.41
 Followup-For: Bug #312393
 
 
 Error 1:
 This was sent as an email when logcheck failed.
 
 Failed to get lockfile: /var/lock/logcheck/logcheck.lock
 
 Check temporary directory: 
 
 declare -x HISTSIZE=1000
 declare -x HOME=/root
 declare -x HZ=100
 declare -x LANG=en_US
 declare -x LESSCLOSE=/usr/bin/lesspipe %s %s
 declare -x LESSOPEN=| /usr/bin/lesspipe %s
 declare -x LOGNAME=logcheck
 declare -x
 LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:
 declare -x LS_OPTIONS=--color=auto -F
 declare -x MAIL=/var/mail/root
 declare -x OLDPWD
 declare -x
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 declare -x PWD=/root
 declare -x SHELL=/bin/bash
 declare -x SHLVL=2
 declare -x SUDO_COMMAND=/usr/sbin/logcheck
 declare -x SUDO_GID=0
 declare -x SUDO_UID=0
 declare -x SUDO_USER=root
 declare -x TERM=xterm
 declare -x USER=logcheck
 
 
 
 Error 2:
 This was what I got when it was run from cron
 
 rm: too few arguments
 Try `rm --help' for more information.
 
 
 Error 3:
 This error was during installation
 
 Setting up logcheck (1.2.41) ...
 useradd: unknown group logcheck
 adduser: `/usr/sbin/useradd -d /var/lib/logcheck -g logcheck -s
 /bin/false -u 118 logcheck' returned error code 6.  Aborting.
 Cleaning up.
 Removing user `logcheck'.
 userdel: user logcheck does not exist
 Removing group `logcheck'.
 groupdel: group logcheck does not exist
 adduser: The user `logcheck' does not exist.
 chown: `logcheck:logcheck': invalid user
 chgrp: invalid group name `logcheck'
 chown: `logcheck:logcheck': invalid user
 
 
 -- System Information:
 Debian Release: testing/unstable
   APT prefers testing
   APT policy: (990, 'testing'), (500, 'stable'), (300, 'unstable'), (100, 
 'experimental')
 Architecture: i386 (i686)
 Shell:  /bin/sh linked to /bin/bash
 Kernel: Linux 2.6.12-bsplash-skas3-v8.2
 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
 
 Versions of packages logcheck depends on:
 ii  adduser  3.67Add and remove users and groups
 ii  cron 3.0pl1-91   management of regular background 
 p
 ii  debconf [debconf 1.4.58  Debian configuration management 
 sy
 ii  debianutils  2.14.1  Miscellaneous utilities specific 
 t
 ii  grep 2.5.1.ds1-5 GNU grep, egrep and fgrep
 ii  lockfile-progs   0.1.10  Programs for locking and 
 unlocking
 ii  logcheck-databas 1.2.41  database of system log rules for 
 t
 ii  logtail  1.2.41  Print log file lines that have 
 not
 ii  mailx1:8.1.2-0.20050715cvs-1 A simple mail user agent
 ii  postfix [mail-tr 2.2.4-1 A high-performance mail 
 transport 
 ii  sysklogd [system 1.4.1-17System Logging Daemon
 
 logcheck recommends no packages.
 
 -- debconf information:
   logcheck/changes:
 * logcheck/install-note:
 
 
 ___
 Logcheck-devel mailing list
 [EMAIL PROTECTED]
 http://lists.alioth.debian.org/mailman/listinfo/logcheck-devel

-- 
[   Todd J. Troxell ,''`.
  Student, Debian GNU/Linux Developer, SysAdmin, Geek  : :' :
  http://debian.org || http://rapidpacket.com/~xtat`. `' 
 `- ]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]