/dev/null permission denied

/dev/null permission denied

Posted by: cisiwh
Posted on: 2008-05-30 00:44:00

One of my cron jobs has failed these past 2 nights with msg:

/bin/sh: line 1: /dev/null: Permission denied

from a redirect of stdout to /dev/null.

Just had a look from the shell and I see:

[pan]$ ls -la /dev/null
crw------- 1 root root 1, 3 2006-03-28 17:43 /dev/null

[pan]$ ls > /dev/null
-bash: /dev/null: Permission denied

Is it just me who's seeing this? What happened to write-permission for /dev/null?!

Re: /dev/null permission denied

Posted by: norm1037
Posted on: 2008-05-30 02:43:00

It happened to me for a few hours. I assumed some server updates were in process so I just turned over and went back to sleep.

Seems to be okay now though. If it persists for you then send a support tickert in and include all the pertinent details.



--
Norm


Opinions are my own views, not DreamHosts'.
I am NOT a DreamHost employee OK! mad

Act on my advice at your own risk!

Tags: cron jobsroot rootshell