[opensuse-factory] /tmp permissions problem
This happens only on one x86_64 box with the effect that X fails and Xorg.0.log ends as follows [ 32.801] (II) NOUVEAU(0): NVLeaveVT is called. [ 32.802] (II) NOUVEAU(0): Closed GPU channel 0 [ 32.880] (EE) Server terminated successfully (0). Closing log file. /etc/permissions setting is not honoured, it gets set to drwxr-xr-x instead. sabre:~ # grep tmp /etc/permissions /tmp/ root:root 1777 /tmp/.X11-unix/ root:root 1777 /tmp/.ICE-unix/ root:root 1777 /var/tmp/ root:root 1777 /var/log/wtmp root:utmp 664 /var/log/btmp root:root 600 /var/run/utmp root:utmp 664 /run/utmp root:utmp 664 /usr/sbin/utempter root:utmp 2755 /usr/lib/utempter/utempter root:utmp 2755 Setting it manually but it reverts to the wrong permissions after a reboot. I can't find what is causing this to happen. sabre:~ # umask 0022 No problem on the other 2 boxes. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
В Wed, 09 Jul 2014 03:02:29 +0100
Sid Boyce
/etc/permissions setting is not honoured, it gets set to drwxr-xr-x instead. sabre:~ # grep tmp /etc/permissions /tmp/ root:root 1777
...
Setting it manually but it reverts to the wrong permissions after a reboot.
Is it separate filesystem? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wed, Jul 09, 2014 at 03:02:29AM +0100, Sid Boyce wrote:
This happens only on one x86_64 box with the effect that X fails and Xorg.0.log ends as follows [ 32.801] (II) NOUVEAU(0): NVLeaveVT is called. [ 32.802] (II) NOUVEAU(0): Closed GPU channel 0 [ 32.880] (EE) Server terminated successfully (0). Closing log file.
/etc/permissions setting is not honoured, it gets set to drwxr-xr-x instead.
These "permissions" from /etc/permissions are only handled during package installation.
sabre:~ # grep tmp /etc/permissions /tmp/ root:root 1777 /tmp/.X11-unix/ root:root 1777 /tmp/.ICE-unix/ root:root 1777 /var/tmp/ root:root 1777 /var/log/wtmp root:utmp 664 /var/log/btmp root:root 600 /var/run/utmp root:utmp 664 /run/utmp root:utmp 664 /usr/sbin/utempter root:utmp 2755 /usr/lib/utempter/utempter root:utmp 2755
Setting it manually but it reverts to the wrong permissions after a reboot. I can't find what is causing this to happen.
sabre:~ # umask 0022
/usr/lib/tmpfiles.d/* are responsible for generating them during boot if tmp is on tmpfs. But 1777 is set there too as permission. grep /tmp /usr/lib/tmpfiles.d/* /usr/lib/tmpfiles.d/tmp.conf:d /tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:d /var/tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:x /tmp/systemd-private-* /usr/lib/tmpfiles.d/tmp.conf:x /var/tmp/systemd-private-* /usr/lib/tmpfiles.d/tmp.conf:X /tmp/systemd-private-*/tmp /usr/lib/tmpfiles.d/tmp.conf:X /var/tmp/systemd-private-*/tmp /usr/lib/tmpfiles.d/x11.conf:d /tmp/.X11-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.ICE-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.XIM-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.font-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.Test-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:r /tmp/.X[0-9]*-lock Ciao, Marcus -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 09/07/14 07:01, Marcus Meissner wrote:
On Wed, Jul 09, 2014 at 03:02:29AM +0100, Sid Boyce wrote:
This happens only on one x86_64 box with the effect that X fails and Xorg.0.log ends as follows [ 32.801] (II) NOUVEAU(0): NVLeaveVT is called. [ 32.802] (II) NOUVEAU(0): Closed GPU channel 0 [ 32.880] (EE) Server terminated successfully (0). Closing log file.
/etc/permissions setting is not honoured, it gets set to drwxr-xr-x instead. These "permissions" from /etc/permissions are only handled during package installation.
sabre:~ # grep tmp /etc/permissions /tmp/ root:root 1777 /tmp/.X11-unix/ root:root 1777 /tmp/.ICE-unix/ root:root 1777 /var/tmp/ root:root 1777 /var/log/wtmp root:utmp 664 /var/log/btmp root:root 600 /var/run/utmp root:utmp 664 /run/utmp root:utmp 664 /usr/sbin/utempter root:utmp 2755 /usr/lib/utempter/utempter root:utmp 2755
Setting it manually but it reverts to the wrong permissions after a reboot. I can't find what is causing this to happen.
sabre:~ # umask 0022 /usr/lib/tmpfiles.d/* are responsible for generating them during boot if tmp is on tmpfs.
But 1777 is set there too as permission.
grep /tmp /usr/lib/tmpfiles.d/* /usr/lib/tmpfiles.d/tmp.conf:d /tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:d /var/tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:x /tmp/systemd-private-* /usr/lib/tmpfiles.d/tmp.conf:x /var/tmp/systemd-private-* /usr/lib/tmpfiles.d/tmp.conf:X /tmp/systemd-private-*/tmp /usr/lib/tmpfiles.d/tmp.conf:X /var/tmp/systemd-private-*/tmp /usr/lib/tmpfiles.d/x11.conf:d /tmp/.X11-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.ICE-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.XIM-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.font-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.Test-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:r /tmp/.X[0-9]*-lock
Ciao, Marcus
Looks exactly like the other 2 systems. sabre:~ # grep /tmp /usr/lib/tmpfiles.d/* /usr/lib/tmpfiles.d/cups.conf:d /var/spool/cups/tmp - - - 30d /usr/lib/tmpfiles.d/tmp.conf:d /tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:d /var/tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:x /tmp/systemd-private-%b-* /usr/lib/tmpfiles.d/tmp.conf:X /tmp/systemd-private-%b-*/tmp /usr/lib/tmpfiles.d/tmp.conf:x /var/tmp/systemd-private-%b-* /usr/lib/tmpfiles.d/tmp.conf:X /var/tmp/systemd-private-%b-*/tmp /usr/lib/tmpfiles.d/x11.conf:d /tmp/.X11-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.ICE-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.XIM-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.font-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.Test-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:r! /tmp/.X[0-9]*-lock I have done a temporary workaround the old way in /etc/fstab sabre:~ # grep tmp /etc/fstab tmpfs /tmp tmpfs nodev,nosuid,mode=1777 0 0 sabre:~ # mount -av /boot : already mounted / : ignored swap : ignored /proc : already mounted /sys : ignored /sys/kernel/debug : ignored /proc/bus/usb : ignored /dev/pts : already mounted /tmp : already mounted Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 09/07/14 16:28, Sid Boyce wrote:
On 09/07/14 07:01, Marcus Meissner wrote:
This happens only on one x86_64 box with the effect that X fails and Xorg.0.log ends as follows [ 32.801] (II) NOUVEAU(0): NVLeaveVT is called. [ 32.802] (II) NOUVEAU(0): Closed GPU channel 0 [ 32.880] (EE) Server terminated successfully (0). Closing log file.
/etc/permissions setting is not honoured, it gets set to drwxr-xr-x instead. These "permissions" from /etc/permissions are only handled during
On Wed, Jul 09, 2014 at 03:02:29AM +0100, Sid Boyce wrote: package installation.
sabre:~ # grep tmp /etc/permissions /tmp/ root:root 1777 /tmp/.X11-unix/ root:root 1777 /tmp/.ICE-unix/ root:root 1777 /var/tmp/ root:root 1777 /var/log/wtmp root:utmp 664 /var/log/btmp root:root 600 /var/run/utmp root:utmp 664 /run/utmp root:utmp 664 /usr/sbin/utempter root:utmp 2755 /usr/lib/utempter/utempter root:utmp 2755
Setting it manually but it reverts to the wrong permissions after a reboot. I can't find what is causing this to happen.
sabre:~ # umask 0022 /usr/lib/tmpfiles.d/* are responsible for generating them during boot if tmp is on tmpfs.
But 1777 is set there too as permission.
grep /tmp /usr/lib/tmpfiles.d/* /usr/lib/tmpfiles.d/tmp.conf:d /tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:d /var/tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:x /tmp/systemd-private-* /usr/lib/tmpfiles.d/tmp.conf:x /var/tmp/systemd-private-* /usr/lib/tmpfiles.d/tmp.conf:X /tmp/systemd-private-*/tmp /usr/lib/tmpfiles.d/tmp.conf:X /var/tmp/systemd-private-*/tmp /usr/lib/tmpfiles.d/x11.conf:d /tmp/.X11-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.ICE-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.XIM-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.font-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.Test-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:r /tmp/.X[0-9]*-lock
Ciao, Marcus
Looks exactly like the other 2 systems. sabre:~ # grep /tmp /usr/lib/tmpfiles.d/* /usr/lib/tmpfiles.d/cups.conf:d /var/spool/cups/tmp - - - 30d /usr/lib/tmpfiles.d/tmp.conf:d /tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:d /var/tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:x /tmp/systemd-private-%b-* /usr/lib/tmpfiles.d/tmp.conf:X /tmp/systemd-private-%b-*/tmp /usr/lib/tmpfiles.d/tmp.conf:x /var/tmp/systemd-private-%b-* /usr/lib/tmpfiles.d/tmp.conf:X /var/tmp/systemd-private-%b-*/tmp /usr/lib/tmpfiles.d/x11.conf:d /tmp/.X11-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.ICE-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.XIM-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.font-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.Test-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:r! /tmp/.X[0-9]*-lock
I have done a temporary workaround the old way in /etc/fstab sabre:~ # grep tmp /etc/fstab tmpfs /tmp tmpfs nodev,nosuid,mode=1777 0 0
sabre:~ # mount -av /boot : already mounted / : ignored swap : ignored /proc : already mounted /sys : ignored /sys/kernel/debug : ignored /proc/bus/usb : ignored /dev/pts : already mounted /tmp : already mounted Regards Sid.
After a reboot with tmpfs in /etc/fstab, /tmp is still not right. I still have to come out of runlevel 5 and "chmod 1777 /tmp" then "init 5" does what is expected. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
В Thu, 10 Jul 2014 14:46:13 +0100
Sid Boyce
On 09/07/14 16:28, Sid Boyce wrote:
On 09/07/14 07:01, Marcus Meissner wrote:
This happens only on one x86_64 box with the effect that X fails and Xorg.0.log ends as follows [ 32.801] (II) NOUVEAU(0): NVLeaveVT is called. [ 32.802] (II) NOUVEAU(0): Closed GPU channel 0 [ 32.880] (EE) Server terminated successfully (0). Closing log file.
/etc/permissions setting is not honoured, it gets set to drwxr-xr-x instead. These "permissions" from /etc/permissions are only handled during
On Wed, Jul 09, 2014 at 03:02:29AM +0100, Sid Boyce wrote: package installation.
sabre:~ # grep tmp /etc/permissions /tmp/ root:root 1777 /tmp/.X11-unix/ root:root 1777 /tmp/.ICE-unix/ root:root 1777 /var/tmp/ root:root 1777 /var/log/wtmp root:utmp 664 /var/log/btmp root:root 600 /var/run/utmp root:utmp 664 /run/utmp root:utmp 664 /usr/sbin/utempter root:utmp 2755 /usr/lib/utempter/utempter root:utmp 2755
Setting it manually but it reverts to the wrong permissions after a reboot. I can't find what is causing this to happen.
sabre:~ # umask 0022 /usr/lib/tmpfiles.d/* are responsible for generating them during boot if tmp is on tmpfs.
But 1777 is set there too as permission.
grep /tmp /usr/lib/tmpfiles.d/* /usr/lib/tmpfiles.d/tmp.conf:d /tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:d /var/tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:x /tmp/systemd-private-* /usr/lib/tmpfiles.d/tmp.conf:x /var/tmp/systemd-private-* /usr/lib/tmpfiles.d/tmp.conf:X /tmp/systemd-private-*/tmp /usr/lib/tmpfiles.d/tmp.conf:X /var/tmp/systemd-private-*/tmp /usr/lib/tmpfiles.d/x11.conf:d /tmp/.X11-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.ICE-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.XIM-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.font-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.Test-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:r /tmp/.X[0-9]*-lock
Ciao, Marcus
Looks exactly like the other 2 systems. sabre:~ # grep /tmp /usr/lib/tmpfiles.d/* /usr/lib/tmpfiles.d/cups.conf:d /var/spool/cups/tmp - - - 30d /usr/lib/tmpfiles.d/tmp.conf:d /tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:d /var/tmp 1777 root root - /usr/lib/tmpfiles.d/tmp.conf:x /tmp/systemd-private-%b-* /usr/lib/tmpfiles.d/tmp.conf:X /tmp/systemd-private-%b-*/tmp /usr/lib/tmpfiles.d/tmp.conf:x /var/tmp/systemd-private-%b-* /usr/lib/tmpfiles.d/tmp.conf:X /var/tmp/systemd-private-%b-*/tmp /usr/lib/tmpfiles.d/x11.conf:d /tmp/.X11-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.ICE-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.XIM-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.font-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:d /tmp/.Test-unix 1777 root root 10d /usr/lib/tmpfiles.d/x11.conf:r! /tmp/.X[0-9]*-lock
I have done a temporary workaround the old way in /etc/fstab sabre:~ # grep tmp /etc/fstab tmpfs /tmp tmpfs nodev,nosuid,mode=1777 0 0
sabre:~ # mount -av /boot : already mounted / : ignored swap : ignored /proc : already mounted /sys : ignored /sys/kernel/debug : ignored /proc/bus/usb : ignored /dev/pts : already mounted /tmp : already mounted Regards Sid.
After a reboot with tmpfs in /etc/fstab, /tmp is still not right. I still have to come out of runlevel 5 and "chmod 1777 /tmp" then "init 5" does what is expected.
Try booting in run levels 1, 3 - is it the same in each? Try enable systemd Early Debug Shell (http://freedesktop.org/wiki/Software/systemd/Debugging/) and boot with plymouth disabled (plymouth.enable=0) and confirmation enabled (systemd.confirm_spawn=true, see systemd(1)). Each time it stops and asks for confirmation go to debug shell and check permissions.
Regards Sid.
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Andrey Borzenkov
-
Marcus Meissner
-
Sid Boyce