[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-17 Thread Mathias Gug
sysklogd (1.4.1-21ubuntu3) gutsy; urgency=low

  * debian/rc:
* Fix syslogd to run as syslog user. Fix LP: #120085.
* Add comment that points to /etc/default/syslogd to set default options.
  Fix LP: #103232.
  * debian/cron.daily, debian/cron.weekly:
* Rotate logs with the correct ownership.

 -- Mathias Gug <[EMAIL PROTECTED]>   Fri, 07 Sep 2007 18:57:55 -0400

** Changed in: sysklogd (Ubuntu)
   Status: Triaged => Fix Released

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-17 Thread Mathias Gug
I've added a new debdiff that fixes the above issue.

** Attachment added: "sysklogd_1.4.1-21ubuntu3-5.debdiff"
   http://launchpadlibrarian.net/9311534/sysklogd_1.4.1-21ubuntu3-5.debdiff

** Attachment removed: "sysklogd_1.4.1-21ubuntu3-4.debdiff"

http://launchpadlibrarian.net/9284255/sysklogd_1.4.1-21ubuntu3-4.debdiff

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-16 Thread Martin Pitt
Approved for Gutsy. Up until dapper, running it as system user worked
fine and we still have enough time to test it properly and fix it
further, if necessary.

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-16 Thread Martin Pitt
In your cron.{daily,weekly} modifications:

+[ -z "${USER}" ] && USER="root"

you should append || true, so that the script does not bail out if $USER
is not zero. That's only an issue if the script is under set -e, but
it's generally more robust.

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-14 Thread Mathias Gug
Attached another version which makes more sense.

** Attachment added: "sysklogd_1.4.1-21ubuntu3-4.debdiff"
   http://launchpadlibrarian.net/9284255/sysklogd_1.4.1-21ubuntu3-4.debdiff

** Attachment removed: "sysklogd_1.4.1-21ubuntu3-2.debdiff"

http://launchpadlibrarian.net/9186373/sysklogd_1.4.1-21ubuntu3-2.debdiff

** Attachment removed: "sysklogd_1.4.1-21ubuntu3-3.debdiff"

http://launchpadlibrarian.net/9284235/sysklogd_1.4.1-21ubuntu3-3.debdiff

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-14 Thread Mathias Gug
I've attached a new debdiff that checks whether the regex to extract a
user will match or not.

** Attachment added: "sysklogd_1.4.1-21ubuntu3-3.debdiff"
   http://launchpadlibrarian.net/9284235/sysklogd_1.4.1-21ubuntu3-3.debdiff

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-14 Thread Henrik Nilsen Omma
Moving milestone to beta.

This was raised at the meeting, who is going to make the call on whether
we change this?


** Changed in: sysklogd (Ubuntu)
   Target: tribe-6 => ubuntu-7.10-beta

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-10 Thread Daniel Holbach
** Changed in: sysklogd (Ubuntu)
 Assignee: Ubuntu Server Team => Canonical Server Team

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-09 Thread Matt Zimmerman
On Fri, Sep 07, 2007 at 11:09:12PM -, Mathias Gug wrote:
> I've attached a new debdiff that also fixes the weekly and daily cron
> script from sysklogd.

Looks good.  The only thing I question is whether it's a good idea to change
the default this late in the release cycle, as there may be other bugs
lurking.

-- 
 - mdz

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-07 Thread Mathias Gug
I've attached a new debdiff that also fixes the weekly and daily cron
script from sysklogd.

** Attachment added: "sysklogd_1.4.1-21ubuntu3-2.debdiff"
   http://launchpadlibrarian.net/9186373/sysklogd_1.4.1-21ubuntu3-2.debdiff

** Attachment removed: "sysklogd_1.4.1-21ubuntu3.debdiff"

http://launchpadlibrarian.net/9156609/sysklogd_1.4.1-21ubuntu3.debdiff

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-07 Thread Matt Zimmerman
On Thu, Sep 06, 2007 at 09:32:48PM -, Mathias Gug wrote:
> I've attached a debdiff that should fix the issue in gutsy.
> 
> I've looked into the suggestion of dropping the root privilege before
> init. However it won't work as init parses the configuration file to
> open the log files. If network logging is required (which is only known
> after the configuration file is parsed), syslogd needs to bind to a
> system port, which can only be done as root.
> 
> Instead, I've patched the init script to start syslogd with the -u
> option. Before starting syslogd, all the log files that syslogd will
> open have their ownership fixed. That should fix the issue, as long as
> the init script is used to start/stop/reload syslogd.
> 
> ** Attachment added: "sysklogd_1.4.1-21ubuntu3.debdiff"
>http://launchpadlibrarian.net/9156609/sysklogd_1.4.1-21ubuntu3.debdiff

Shouldn't the cron script be fixed to set correct ownership as well?

-- 
 - mdz

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-06 Thread Mathias Gug
On Thu, Sep 06, 2007 at 09:34:05PM -, Markus Schlager wrote:
> Yes indeed. In our case it started to fail on Saturday, June 16th due to 
> the call of /etc/cron.daily/sysklogd.
> 

Could you figure out which packages have been upgraded around that time
?

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-06 Thread Markus Schlager
On Thu, 6 Sep 2007, Mathias Gug wrote:

> I'm trying to figure out what change caused you the problem. Is it a
> fresh install of dapper ? 

Yes. (i.e. no upgrade from breezy)

> Was it working before but started to  fail after an
> upgrade ?
> 

Yes indeed. In our case it started to fail on Saturday, June 16th due to 
the call of /etc/cron.daily/sysklogd.

Markus
---
 Markus Schlager   m.slg(at)gmx.de

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-06 Thread Mathias Gug
I've attached a debdiff that should fix the issue in gutsy.

I've looked into the suggestion of dropping the root privilege before
init. However it won't work as init parses the configuration file to
open the log files. If network logging is required (which is only known
after the configuration file is parsed), syslogd needs to bind to a
system port, which can only be done as root.

Instead, I've patched the init script to start syslogd with the -u
option. Before starting syslogd, all the log files that syslogd will
open have their ownership fixed. That should fix the issue, as long as
the init script is used to start/stop/reload syslogd.

** Attachment added: "sysklogd_1.4.1-21ubuntu3.debdiff"
   http://launchpadlibrarian.net/9156609/sysklogd_1.4.1-21ubuntu3.debdiff

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-06 Thread Mathias Gug

On Thu, Sep 06, 2007 at 03:44:23PM -, Jörn Dreyer wrote:
> I used the workaround Markus Schlager proposed:
> changed SYSLOGD=" -u syslog" into SYSLOGD=" " in /etc/init.d/sysklogd
> 

I'm trying to figure out what change caused you the problem. Is it a
fresh install of dapper ? Was it working before but started to  fail after an
upgrade ?

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-06 Thread Jörn Dreyer
I used the workaround Markus Schlager proposed:
changed SYSLOGD=" -u syslog" into SYSLOGD=" " in /etc/init.d/sysklogd

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-06 Thread Mathias Gug
It seems that there are two issues here, one for gutsy and one for
dapper.

The issue that was reported is for gutsy and shouldn't apply for dapper.

In dapper, the reload action in the init script stops then starts the
syslog daemon. In gutsy, the reload action in the init script sends a
HUP signal, which is the reason why it has problem reopening files when
run under the syslog user.

For dapper users, did you change the cron script or the init script ?

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-06 Thread Matt Zimmerman
On Wed, Sep 05, 2007 at 09:07:06PM -, Mathias Gug wrote:
> 
> This problem doesn't affect the default configuration. The default
> configuration file doesn't mention the option to change the user under
> which the syslogd daemon is running. 
> The comment in the init script may be removed as it's misleading.

What I think happened in my case is that I used to have SYSLOGD="-r" in
/etc/default/syslogd, and since I no longer needed remote logging, I simply
commented this out.

This had the unexpected side effect of breaking all of my logging.
Adjusting the priority appropriately, leaving milestone.

-- 
 - mdz

** Changed in: sysklogd (Ubuntu)
   Importance: Low => Medium

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-06 Thread Jörn Dreyer
I disagree ... the problem is that in dapper ther is no
/etc/default/syslogd. The problem described by Markus Schlager and
confirmed by me still makes it quite critical I think.

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-04 Thread Henrik Nilsen Omma
** Changed in: sysklogd (Ubuntu)
 Assignee: (unassigned) => Ubuntu Server Team

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-03 Thread Jörn Dreyer
We can confirm this on dapper lts. Exactly the same behaviour as Markus
Schlager reported in
https://bugs.launchpad.net/ubuntu/+source/sysklogd/+bug/120085/comments/2

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-03 Thread Matt Zimmerman
I've confirmed this behaviour here.  Each and every time that syslogd is
reloaded (including by cron.daily), all logging ceases, as it fails to
open all of its log files.

** Changed in: sysklogd (Ubuntu)
   Importance: Undecided => Critical
   Status: New => Triaged
   Target: None => tribe-6

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-09-03 Thread Matt Zimmerman

** Attachment added: "strace log"
   http://launchpadlibrarian.net/9097266/strace.txt

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-06-19 Thread Markus Schlager
better workaround for the moment:
changed SYSLOGD=" -u syslog" into SYSLOGD=" " in /etc/init.d/sysklogd.

Meanwhile the computer wouldn't even halt nor boot with this option
enabled.

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-06-19 Thread Markus Schlager
Thanx a lot for your explanations, Graeme!

I can confirm this on our server, running dapper-lts. We're experiencing these 
problems since last Friday, 15.6.2007. The consequences are quite serious. 
Since we're using an openLDAP-Server on this machine for user-authentification, 
this bug in /etc/cron.daily/sysklogd
 disables any login to this machine - neither via ssh nor locally. 
Communication with postfix (port 25) isn't possible any more either. The only 
way to get out of this situation is a hardware-reset! After reboot everything 
works fine - until the next run of /etc/cron.daily/sysklogd. Hence we disabled 
/etc/cron.daily/sysklogd for the moment.

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120085] Re: Various problems running syslogd with "-u syslog" option

2007-06-12 Thread Graeme Hewson
Sorry, the penultimate paragraph above is probably wrong, since auth.log
would normally exist at boot time, with mode 640.

-- 
Various problems running syslogd with "-u syslog" option
https://bugs.launchpad.net/bugs/120085
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs