[Bug 1522313] Re: Wrong /dev/null permissions after boot

Hinko Kocevar 1522313 at bugs.launchpad.net
Mon Feb 29 11:23:07 UTC 2016


hinkokocevar at hinkocmbp:/boot$ sudo udevadm test /class/mem/null
calling: test
version 225
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

=== trie on-disk ===
tool version:          225
file size:         6848577 bytes
header size             80 bytes
strings            1716889 bytes
nodes              5131608 bytes
Load module index
timestamp of '/etc/systemd/network' changed
timestamp of '/lib/systemd/network' changed
Parsed configuration file /lib/systemd/network/99-default.link
Parsed configuration file /lib/systemd/network/90-mac-for-usb.link
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
timestamp of '/lib/udev/rules.d' changed
Reading rules file: /lib/udev/rules.d/39-usbmuxd.rules
Reading rules file: /lib/udev/rules.d/40-crda.rules
Reading rules file: /lib/udev/rules.d/40-gnupg.rules
Reading rules file: /lib/udev/rules.d/40-inputattach.rules
Reading rules file: /lib/udev/rules.d/40-libgphoto2-6.rules
Reading rules file: /lib/udev/rules.d/40-libsane.rules
Reading rules file: /lib/udev/rules.d/40-usb_modeswitch.rules
Reading rules file: /lib/udev/rules.d/40-vm-hotadd.rules
Reading rules file: /lib/udev/rules.d/50-apport.rules
Reading rules file: /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules
Reading rules file: /lib/udev/rules.d/50-firmware.rules
Reading rules file: /lib/udev/rules.d/50-udev-default.rules
Reading rules file: /lib/udev/rules.d/55-dm.rules
Reading rules file: /lib/udev/rules.d/56-hpmud.rules
Reading rules file: /lib/udev/rules.d/60-block.rules
Reading rules file: /lib/udev/rules.d/60-cdrom_id.rules
Reading rules file: /lib/udev/rules.d/60-drm.rules
Reading rules file: /lib/udev/rules.d/60-evdev.rules
Reading rules file: /lib/udev/rules.d/60-pcmcia.rules
Reading rules file: /lib/udev/rules.d/60-persistent-alsa.rules
Reading rules file: /lib/udev/rules.d/60-persistent-input.rules
Reading rules file: /lib/udev/rules.d/60-persistent-storage-dm.rules
Reading rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
Reading rules file: /lib/udev/rules.d/60-persistent-storage.rules
Reading rules file: /lib/udev/rules.d/60-persistent-v4l.rules
Reading rules file: /lib/udev/rules.d/60-serial.rules
Reading rules file: /lib/udev/rules.d/61-persistent-storage-android.rules
Reading rules file: /lib/udev/rules.d/64-btrfs.rules
Reading rules file: /lib/udev/rules.d/64-xorg-xkb.rules
Reading rules file: /lib/udev/rules.d/66-xorg-synaptics-quirks.rules
Reading rules file: /lib/udev/rules.d/69-cd-sensors.rules
Reading rules file: /lib/udev/rules.d/69-libmtp.rules
Reading rules file: /lib/udev/rules.d/69-wacom.rules
Reading rules file: /lib/udev/rules.d/69-xorg-vmmouse.rules
Reading rules file: /lib/udev/rules.d/70-mouse.rules
Reading rules file: /etc/udev/rules.d/70-persistent-net.rules
Reading rules file: /lib/udev/rules.d/70-power-switch.rules
Reading rules file: /lib/udev/rules.d/70-printers.rules
Reading rules file: /lib/udev/rules.d/70-uaccess.rules
Reading rules file: /lib/udev/rules.d/71-power-switch-proliant.rules
Reading rules file: /lib/udev/rules.d/71-seat.rules
Reading rules file: /lib/udev/rules.d/73-idrac.rules
Reading rules file: /lib/udev/rules.d/73-seat-late.rules
Reading rules file: /lib/udev/rules.d/75-net-description.rules
Reading rules file: /lib/udev/rules.d/75-probe_mtd.rules
Reading rules file: /lib/udev/rules.d/77-mm-cinterion-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-ericsson-mbm.rules
Reading rules file: /lib/udev/rules.d/77-mm-huawei-net-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-longcheer-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-mtk-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-nokia-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules
Reading rules file: /lib/udev/rules.d/77-mm-platform-serial-whitelist.rules
Reading rules file: /lib/udev/rules.d/77-mm-qdl-device-blacklist.rules
Reading rules file: /lib/udev/rules.d/77-mm-simtech-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-telit-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-usb-device-blacklist.rules
Reading rules file: /lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules
Reading rules file: /lib/udev/rules.d/77-mm-x22x-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-zte-port-types.rules
Reading rules file: /lib/udev/rules.d/78-graphics-card.rules
Reading rules file: /lib/udev/rules.d/78-sound-card.rules
Reading rules file: /lib/udev/rules.d/80-debian-compat.rules
Reading rules file: /lib/udev/rules.d/80-drivers.rules
Reading rules file: /lib/udev/rules.d/80-mm-candidate.rules
Reading rules file: /lib/udev/rules.d/80-net-setup-link.rules
Reading rules file: /lib/udev/rules.d/80-networking.rules
Reading rules file: /lib/udev/rules.d/80-udisks2.rules
Reading rules file: /lib/udev/rules.d/85-brltty.rules
Reading rules file: /lib/udev/rules.d/85-hdparm.rules
Reading rules file: /lib/udev/rules.d/85-hplj10xx.rules
Reading rules file: /lib/udev/rules.d/85-keyboard-configuration.rules
Reading rules file: /lib/udev/rules.d/85-nm-unmanaged.rules
Reading rules file: /lib/udev/rules.d/85-regulatory.rules
Reading rules file: /lib/udev/rules.d/85-tlp-rdw.rules
Reading rules file: /lib/udev/rules.d/85-tlp.rules
Reading rules file: /etc/udev/rules.d/88-andor-luca.rules
Reading rules file: /etc/udev/rules.d/88-keysight-xseries-siggen.rules
Reading rules file: /etc/udev/rules.d/88-thorlabs-ccs.rules
Reading rules file: /etc/udev/rules.d/88-thorlabs-fw102.rules
Reading rules file: /etc/udev/rules.d/88-thorlabs-mff101.rules
Reading rules file: /etc/udev/rules.d/88-thorlabs-pm100.rules
Reading rules file: /lib/udev/rules.d/90-alsa-restore.rules
Reading rules file: /lib/udev/rules.d/90-alsa-ucm.rules
Reading rules file: /lib/udev/rules.d/90-pulseaudio.rules
Reading rules file: /lib/udev/rules.d/95-cd-devices.rules
Reading rules file: /lib/udev/rules.d/95-upower-csr.rules
Reading rules file: /lib/udev/rules.d/95-upower-hid.rules
Reading rules file: /lib/udev/rules.d/95-upower-wup.rules
Reading rules file: /lib/udev/rules.d/97-hid2hci.rules
Reading rules file: /lib/udev/rules.d/99-systemd.rules
rules contain 393216 bytes tokens (32768 * 12 bytes), 34227 bytes strings
23303 strings (195713 bytes), 19848 de-duplicated (164942 bytes), 3456 trie nodes used
value '[dmi/id]sys_vendor' is 'Apple Inc.'
value '[dmi/id]sys_vendor' is 'Apple Inc.'
IMPORT builtin 'usb_id' /lib/udev/rules.d/56-hpmud.rules:10
unable to access usb_interface device of '/sys/devices/virtual/mem/null'
IMPORT builtin 'usb_id' returned non-zero
MODE 0660 /etc/udev/rules.d/88-andor-luca.rules:5
MODE 0660 /etc/udev/rules.d/88-keysight-xseries-siggen.rules:5
MODE 0660 /etc/udev/rules.d/88-thorlabs-ccs.rules:8
MODE 0660 /etc/udev/rules.d/88-thorlabs-fw102.rules:5
MODE 0660 /etc/udev/rules.d/88-thorlabs-mff101.rules:5
MODE 0660 /etc/udev/rules.d/88-thorlabs-pm100.rules:5
handling device node '/dev/null', devnum=c1:3, mode=0660, uid=0, gid=0
preserve permissions /dev/null, 020660, uid=0, gid=0
preserve already existing symlink '/dev/char/1:3' to '../null'
created empty file '/run/udev/data/c1:3' for '/devices/virtual/mem/null'
ACTION=add
DEVMODE=0666
DEVNAME=/dev/null
DEVPATH=/devices/virtual/mem/null
MAJOR=1
MINOR=3
SUBSYSTEM=mem
USEC_INITIALIZED=1022539716479
Unload module index
Unloaded link configuration context.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1522313

Title:
  Wrong /dev/null permissions after boot

Status in systemd package in Ubuntu:
  Incomplete

Bug description:
  After running update today (on Ubuntu 15.10) and rebooting the OS
  lightdm would not start. After some debugging I noticed that /dev/null
  (and some other /dev files) do not have adequate permissions (compared
  to another Ubuntu box I have) - e.g. 'others' could not read nor write
  /dev/null.

  After 'chmod a+rw' offending files, lightdm started up. Of course this
  is not reboot persistent so I need to put this in some /etc/rc.* to
  make it stick - which I do not want to!

  To fix this problem after reboots I added /etc/init.d/fix-dev.sh
  script with contents, and symlink to /etc/rcS.d/S14fix-dev.sh (last
  entry):

  chmod a+rw /dev/null /dev/random /dev/urandom /dev/ptmx /dev/tty
  /dev/zero /dev/full /dev/fuse /dev/net/tun

  My system now starts the lightdm as it did before.

  $ lsb_release -rd
  Description:	Ubuntu 15.10
  Release:	15.10

  apt-cache policy udev
  udev:
    Installed: 225-1ubuntu9
    Candidate: 225-1ubuntu9
    Version table:
   *** 225-1ubuntu9 0
          500 http://se.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1522313/+subscriptions



More information about the foundations-bugs mailing list