fir3net
PPS-Firenetbanner-780.5x190-30-03-17

-bash: /dev/null: Permission Denied

Issue

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 

Solution

/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

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001