Bug#312393: [Logcheck-devel] Bug#312393: logcheck: The bug looks to be in the postinst script

2005-09-07 Thread Ritesh Raj Sarraf
On Wednesday 07 Sep 2005 05:02, maximilian attems wrote:
 can you please provide the output of the following command on your system:
 adduser --quiet --system --no-create-home --group --home /var/lib/logcheck
 logcheck


[EMAIL PROTECTED]:~ # adduser --quiet --system --no-create-home --group 
--home /var/lib/logcheck logcheck

No output.  The command executed successfully

 you need to run aboves cmd as root, afterwards the output of that would be
 intersting:
 getent passwd logcheck


[EMAIL PROTECTED]:~ # getent passwd logcheck
logcheck:x:119:118::/var/lib/logcheck:/bin/false

 as aboves may fail, are you using selinux or grsecurity?
 what are you mount options, please send output of:
 mount

No, I'm not using any of them. /var is part of /
/dev/hda8 on / type ext3 (rw,errors=remount-ro,commit=0)

 also the plain output of this both may help:
 getent passwd

[EMAIL PROTECTED]:~ # getent passwd
root:x:0:0:root:/root:/bin/bash
sashroot:x:0:0:root:/root:/bin/sash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
postgres:x:31:32:postgres:/var/lib/postgres:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
operator:x:37:37:Operator:/var:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
rrs:x:1000:1000:Ritesh Raj Sarraf,,,:/home/rrs:/bin/bash
saned:x:104:104::/home/saned:/bin/false
dictd:x:105:105::/var/lib/dictd:/bin/false
identd:x:100:65534::/var/run/identd:/bin/false
sshd:x:101:65534::/var/run/sshd:/bin/false
dovecot:x:109:109:Dovecot mail server,,,:/usr/lib/dovecot:/bin/false
fetchmail:x:102:65534::/var/run/fetchmail:/bin/sh
postfix:x:103:107::/var/spool/postfix:/bin/false
uml-net:x:113:113::/home/uml-net:/bin/false
messagebus:x:106:114::/var/run/dbus:/bin/false
hal:x:115:115:Hardware abstraction layer,,,:/var/run/hal:/bin/false
test:x:1001:1001:,,,:/home/test:/bin/bash
mysql:x:107:116:MySQL Server,,,:/var/lib/mysql:/bin/false
alias:x:64010:65534:qmail alias,,,:/var/qmail/alias:/bin/false
qmaild:x:64011:65534:qmail daemon,,,:/var/qmail:/bin/false
qmails:x:64012:64010:qmail send,,,:/var/qmail:/bin/false
qmailr:x:64013:64010:qmail remote,,,:/var/qmail:/bin/false
qmailq:x:64014:64010:qmail queue,,,:/var/qmail:/bin/false
qmaill:x:64015:65534:qmail log,,,:/var/qmail:/bin/false
qmailp:x:64016:65534:qmail pw,,,:/var/qmail:/bin/false
Debian-console-log:x:108:108::/var/run/console-log:/bin/false
logcheck:x:119:118::/var/lib/logcheck:/bin/false

 getent group

[EMAIL PROTECTED]:~ # getent group
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:rrs,Debian-console-log
tty:x:5:
disk:x:6:rrs
lp:x:7:lp
mail:x:8:
news:x:9:
uucp:x:10:
proxy:x:13:
kmem:x:15:
dialout:x:20:rrs
fax:x:21:
voice:x:22:
cdrom:x:24:hal,rrs
floppy:x:25:hal
tape:x:26:
sudo:x:27:
audio:x:29:rrs
dip:x:30:rrs
postgres:x:32:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:rrs
staff:x:50:rrs
games:x:60:
users:x:100:
nogroup:x:65534:
rrs:x:1000:
man:*:12:
sasl:*:45:
crontab:x:101:
camera:x:102:
scanner:x:103:
saned:x:104:
dictd:x:105:
ssh:x:106:
dovecot:x:109:
jwhois:x:110:
postfix:x:107:
postdrop:x:111:
lpadmin:x:112:
uml-net:x:113:rrs
plugdev:*:46:
messagebus:x:114:
hal:x:115:
test:x:1001:
mysql:x:116:
fuse:x:117:rrs
qmail:x:64010:
Debian-console-log:x:108:
logcheck:x:118:


Feel free if you need any additional information.

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.


pgpSIE3C9adhx.pgp
Description: PGP signature


Bug#312393: [Logcheck-devel] Bug#312393: logcheck: The bug looks to be in the postinst script

2005-09-07 Thread maximilian attems
On Wed, 07 Sep 2005, Ritesh Raj Sarraf wrote:

 On Wednesday 07 Sep 2005 05:02, maximilian attems wrote:
  can you please provide the output of the following command on your system:
  adduser --quiet --system --no-create-home --group --home /var/lib/logcheck
  logcheck
 
 
 [EMAIL PROTECTED]:~ # adduser --quiet --system --no-create-home --group 
 --home /var/lib/logcheck logcheck
 
 No output.  The command executed successfully

so your system seems to work.
please do as root

apt-get --purge remove logcheck
apt-get install logcheck

looking forward to see the results.
 
--
maks


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



Bug#312393: [Logcheck-devel] Bug#312393: logcheck: The bug looks to be in the postinst script

2005-09-06 Thread maximilian attems

On Wed, 07 Sep 2005, Ritesh Raj Sarraf wrote:

 This is an important bug, infact it should be a grave bug.
 logcheck doesn't get installed properly. The postrm scripts are designed
 to add the logcheck user while having logcheck as its group too.
 The logcheck group is nowhere being added as far as I see.
 I believe you need to add the group before adding the user.

please file an seperate bug,
i do not see how your experienced breakage is related  to #312393?
did you do an upgrade from woody, is it a fresh install?
if you want i can forward to a new bug.
 
 And all this is breaking the remaining installation process.
 The files and directories are not getting chowned from the script.
 
 HTH,
 rrs

the postrm takes care of removing the logcheck user.
anyway that is not run on installation of logcheck!!
we need more info from you side,
atm i doubt your report is connected to aboves bug?

greetings

--
maks


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



Bug#312393: [Logcheck-devel] Bug#312393: logcheck: The bug looks to be in the postinst script

2005-09-06 Thread Ritesh Raj Sarraf
On Wednesday 07 Sep 2005 02:19, maximilian attems wrote:
 On Wed, 07 Sep 2005, Ritesh Raj Sarraf wrote:
  This is an important bug, infact it should be a grave bug.
  logcheck doesn't get installed properly. The postrm scripts are designed
  to add the logcheck user while having logcheck as its group too.
  The logcheck group is nowhere being added as far as I see.
  I believe you need to add the group before adding the user.

 please file an seperate bug,
 i do not see how your experienced breakage is related  to #312393?
 did you do an upgrade from woody, is it a fresh install?
 if you want i can forward to a new bug.

  And all this is breaking the remaining installation process.
  The files and directories are not getting chowned from the script.
 
  HTH,
  rrs

 the postrm takes care of removing the logcheck user.
 anyway that is not run on installation of logcheck!!
 we need more info from you side,
 atm i doubt your report is connected to aboves bug?

 greetings

It is connected to the same bug.

The OP mentioned of the problem after doing multiple installations and 
uninstallations of logcheck. So by then it is same as a plain installation.

This OP's bug report mentions /var/lock/logcheck not having proper ownership 
permissions and that is because the postinst script is broken.

I'm badly stuck up with other important work so can't give you a patch at the 
moment. :-(

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.


pgpyehXFMwVQb.pgp
Description: PGP signature


Bug#312393: [Logcheck-devel] Bug#312393: logcheck: The bug looks to be in the postinst script

2005-09-06 Thread Todd Troxell
On Wed, Sep 07, 2005 at 01:12:59AM +0530, Ritesh Raj Sarraf wrote:
 Package: logcheck
 Version: 1.2.41
 Followup-For: Bug #312393
 
 
 This is an important bug, infact it should be a grave bug.
 logcheck doesn't get installed properly. The postrm scripts are designed
 to add the logcheck user while having logcheck as its group too.
 The logcheck group is nowhere being added as far as I see.
 I believe you need to add the group before adding the user.

The group is added in the same line because of the --group option.  See
adduser(8).

There must be something else going on here.  Did you use webmin like the user
in the original report?

Cheers,
-- 
[   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: The bug looks to be in the postinst script

2005-09-06 Thread maximilian attems
On Wed, 07 Sep 2005, Ritesh Raj Sarraf wrote:

 It is connected to the same bug.
 
 The OP mentioned of the problem after doing multiple installations and 
 uninstallations of logcheck. So by then it is same as a plain installation.
 
 This OP's bug report mentions /var/lock/logcheck not having proper ownership 
 permissions and that is because the postinst script is broken.
 
 I'm badly stuck up with other important work so can't give you a patch at the 
 moment. :-(

i guess you interrupt the postrm or similar to get into similar troubles.
ok thanks for your clarifications.
the following might help to clarify the situation:

the error 2 is corrected in latest logcheck source and his harmless.

the error 1 is a direct consequence of error 3,
logcheck needs it's user to be able to run.

can you please provide the output of the following command on your system:
adduser --quiet --system --no-create-home --group --home /var/lib/logcheck 
logcheck

you need to run aboves cmd as root, afterwards the output of that would be
intersting:
getent passwd logcheck

as aboves may fail, are you using selinux or grsecurity?
what are you mount options, please send output of:
mount
also the plain output of this both may help:
getent passwd
getent group

(aboves should not be sensitive but if you care you can send me and todd
privately)
 
--
maks



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