M K Narayanan has been given temporary charge as National Security Adviser, in place of J N Dixit, who passed away on January 3.