#343386 /var/run/xdm.pid: Permission denied

Package:
xdm
Source:
xdm
Description:
X display manager
Submitter:
Dan Jacobson
Date:
2026-10-02 17:49:02 UTC
Severity:
wishlist
#343386#3
Date:
2005-12-14 17:40:40 UTC
From:
To:
Odd, I (as root on /dev/tty1) do invoke-rc.d xdm restart, and in
/var/log/xdm.log see "Permission denied". No problem, just looks weird.

xdm info (pid 4628): shutting down
xdm info (pid 4654): sourcing /usr/X11R6/lib/X11/xdm/Xreset
xdm error (pid 4654): cannot remove process ID file /var/run/xdm.pid:
Permission denied
xdm info (pid 4628): exiting
xdm info (pid 5720): starting
xdm info (pid 5720): starting X server on :0

(The file was updated anyway. Good.)

#343386#10
Date:
2026-10-02 17:47:36 UTC
From:
To:
On Thu, 15 Dec 2005 01:40:40 +0800 Dan Jacobson <jidanni@jidanni.org> wrote:
 > Package: xdm
 > Version: 6.8.2.dfsg.1-9
 > Severity: wishlist
 >
 > Odd, I (as root on /dev/tty1) do invoke-rc.d xdm restart, and in
 > /var/log/xdm.log see "Permission denied". No problem, just looks weird.
 >
 > xdm info (pid 4628): shutting down
 > xdm info (pid 4654): sourcing /usr/X11R6/lib/X11/xdm/Xreset
 > xdm error (pid 4654): cannot remove process ID file /var/run/xdm.pid:
 > Permission denied
 > xdm info (pid 4628): exiting
 > xdm info (pid 5720): starting
 > xdm info (pid 5720): starting X server on :0


Hi,

The message came from a child xdm process (pid 4654, the one sourcing Xreset)
running the atexit() handler that removes the pid file; the parent (pid 4628)
is the one that owns it. Upstream commit 3a4f890
("Don't remove the pid file from xdm child processes", xdm 1.1.10)
makes that handler a no-op outside the parent xdm process. It is the
same fix that closed #372114 in 1:1.1.10-1, so I'm closing this bug
with that version.

Please reopen if you still see this message with a current xdm.

Thanks,
Boyuan