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

Hinko Kocevar 1522313 at bugs.launchpad.net
Mon Feb 29 11:26:18 UTC 2016


Let me just say also that after running 'sudo udevadm test
/class/mem/null' the permissions to /dev/null changes to

hinkokocevar at hinkocmbp:/boot$ ls -al /dev/null
crw-rw---- 1 root root 1, 3 Feb 29 12:23 /dev/null

And now for example commands that I wish to end with <TAB> yield errors:

hinkokocevar at hinkocmbp:/boot$ ls /bash: /dev/null: Permission denied
bash: _upvars: `-a2': invalid number specifier
bash: /dev/null: Permission denied
bash: _upvars: `-a0': invalid number specifier
^C

Running my fix script '/etc/rcS.d/S14fix-dev.sh' solves the issue
again..

-- 
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