Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I get this error when I try do sudo su

reputa@reputa:~$ sudo su
Cannot execute csh: No such file or directory

sudo -i is working fine but I want to use sudo su. How do I make it happen?

share|improve this question

2 Answers 2

You should better check your root's user default shell.

sudo gedit /etc/passwd

It should be /bin/bash

share|improve this answer
    
Directly editing /etc/passwd is a bad idea... –  izx Aug 13 '12 at 9:49
    
Thanks, you're true, the correct way is sudo vipw /etc/passwd –  Marc M Aug 13 '12 at 18:29

Your root's (su) profile is set to use csh instead of the usual bash.

Run sudo apt-get install tcsh to install it, and your problem should be solved.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.