-bash: /dev/null: Permission Denied


After creating a new user account you may find that on login you recieve the following error,

-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied 


/dev/null is a character special device which should have read+write permissions for everybody.
Run the following to confirm the current permissions for /dev/null,

ls -l /dev/null

If the output doesnt show the permissions crw-rw-rw- then change them accordingly via the chmod command.

About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001