Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
Why don't you have the remote user log in as root? –  terdon Apr 27 '13 at 17:29
1  
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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.