Philip Newton (pne) wrote,
Philip Newton

ls: /dev/null: No such file or directory

Bizarre. When I tried to upgrade a MySQL installation just now, I got this error message:

/usr/local/bin/mysql_fix_privilege_tables: cannot create /dev/null: Permission denied

That looked odd, since everyone should be able to write to that file, so I tried to see what was wrong:

$ ls -l /dev/null
ls: /dev/null: No such file or directory

Curiouser and curiouser.

After logging out and logging back in, though, /dev/null was back again (as a special file "0, 6"), and I was able to run the script.

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded