Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do we cause login cshell to automatically execute sudo su - when a user first ssh into the linux box from Windows putty ?

We tried putting this line sudo su - in .cshrc file but it is never executed. We also tried echo -s "text" | sudo su - in .cshrc file but it is never executed, even after source .cshrc.

Thank you Sincerely

share|improve this question
Why don't you have the remote user log in as root? – terdon Apr 27 '13 at 17:29
The first thing you have to ask yourself why you actually NEED that feature. The 2nd thing you have to check is whether or not the user on the box you ssh into is actually using csh (bleagh) as their login shell. – tink Apr 27 '13 at 19:24
Hi terdon, think - thx for responding. its a putty.exe from windows to the regular shell and then "sudo su -" as root. the regular user default shell is a csh but root is bash – chz Apr 28 '13 at 21:57

You must log in to answer this question.

Browse other questions tagged .