FC32 /dev/null permission denied

Hi,

I recently upgraded from FC31 to FC32, and sometimes when I use my machines (I had the same problem on different machines Desktop, laptop and my work-laptop) I got this error message : /dev/null permission denied.

Searching the net I found that it is a file permissions problem and I could get around the problem without rebooting my machine with this :

rm -f /dev/null; mknod -m 666 /dev/null c 1 3

what I don’t understand, what causes the problem?
Regards.

Could you provide more details? When/where exactly do you see the permission denied message?

1 Like

Hi,

Randomly, but in general after some use of the machine, apart from the root user which seems not affected, regular users are affected, for some reason, when the permissions of the /dev/null get changed, I start getting this error when for example I open a new shell, sshd service also is affected by this error.

Regards.

Next time this happens, open a terminal and run this command:

ls -l /dev/null

and post the results. In order to help you with this, we’ll need to know what the permissions actually are when you’re getting that message.

1 Like