I get -bash: /dev/null: Permission denied everytime I login to my shell account Print

  • 23

If every time you login to your VPS linux account you get the following error:

-bash: /dev/null: Permission denied

This can be fixed by recreating /dev/null . Follow these steps:

  1. rm /dev/null
  2. mknod -m 0666 /dev/null c 1 3

Both steps need to be executed using user root.


Was this answer helpful?

« Back