On 22 May 2002 23:34:57 -0400 Frederic Lepied <[EMAIL PROTECTED]>
wrote:
> Fabrice MARIE <[EMAIL PROTECTED]> writes:
>
> > Hello,
> >
> > I use all the latest packages of cooker (updated every day :-),
> > and every hour, I receive a message from
> > the execution of msec hourly cron :
> >
> > /etc/cron.hourly/msec: /var/run/msec.pid: Permission denied
[snip]
> >
> > Did I do something wrong or miss something ?
> > Is the first line normal ?
>
> Very strange. I don't understand why msec can't write to /var/run. Are
> the filesystems mounted read-only ?
Maybe the permissions... here's LM8.2... (LM8.1 was the same)
$ ll -d /var/run
drwxr-xr-x 6 root root 1024 May 23 01:01 /var/run/
I have to change them to 777 every new install cuz there are still some
programs that won't start with the default install perms... I reported
this issue as far back as LM7.2 (see below) and never got a response...
Pierre
Date: Tue, 29 May 2001 13:26:18 -0400
From: Pierre Fortin <[EMAIL PROTECTED]>
To: Mandrake Expert <[EMAIL PROTECTED]>
Subject: [expert] /var/run permission problems
On my LM7.2 systems, I'm running X4.0.3 compiled from source. When I
first
installed this X, xfs would not start because it was now owned by xfs.xfs
(4.0.2
was root.root)... I quickly worked around this issue by changing the
perms on
/var/run and forgot about it. Likewise, I installed X4.0.3 on my sister's
PC
and everything has been fine until the other day when her X would not
start up
due to xfs not starting.
I'm waiting for an answer as to what might have changed; but is this a
problem
others have run into?
What is the proper "fix"? I doubt "chmod 777 /var/run" is it...
Thanks,
Pierre
Date: Mon, 10 Sep 2001 11:07:57 -0400
From: Pierre Fortin <[EMAIL PROTECTED]>
To: Mandrake Expert <[EMAIL PROTECTED]>
Subject: [expert] /var/run permissions
Hi,
Still running some LM7.2 systems and have had some occasions where X would
not
start.
LM7.2 comes with XFree86 v3.3.6 and v4.0.1; but shortly after installing
7.2,
XFree86 v4.0.3 came out and I installed that manually...
4.0.3 changed the ownership of xfs to xfs.xfs... however, xfs tries to
write
xfs.pid into /var/run which is impossible with:
drwxr-xr-x 5 root root 4096 Sep 10 10:48 /var/run/
^ ^
So, I changed /var/run to:
drwxrwxrwx 5 root root 4096 Sep 10 10:48 /var/run/
since I could not get an answer at the time.
On occasion, the permissions of /var/run would get magically changed back
to 755
causing X to fail to start because there was no xfs server, in turn
because xfs
could not write its PID file to /var/run... Finally tracked this down to
linuxconf which returns the /var/run permissions to 755:
> # netconf --status
> List of things required to activate current configuration
> Changing permissions of file /var/run from 40777 to 40755
So.... gotta ask again... does anyone know the correct way to fix
this...?
Either /var/run needs to allow non-root processes, linuxconf should butt
out, or
xfs needs to write xfs.pid elsewhere...? Other...?
Thanks,
Pierre