-bash: /dev/null: Permission Denied
Thursday, 16 April 2009 18:58

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.



 
We have 58 guests online