title: can we write a simple bash script to automatically login as root user
body: <p>I usually have to login in 20 to 50 times daily as a super user, typing the long password again and again..</p>
  
  <p>i have just created a simple bash script</p>
  
  <pre><code>#!/bin/bash
  
  sudo -s
  echo password
  </code></pre>
  
  <p>./test</p>
  
  <p>output root@localhost:
  password
  when i execute it, it works like charm... but it shows my password on the screen.....</p>
  
  <p>do some one have any other best solution...... for this small problem.......</p>
  
  <p>i hope this is not all the solution in security standard...... can we have any other solution with out exposing my password.....</p>