[Ilugc] passing password as argument to su command

  • From: prashmohan@xxxxxxxxx (Prashanth Mohan)
  • Date: Thu Apr 14 01:47:08 2005

Hello

I use the USB ADSL modem provided by airtel (touchtel). For connecting
to the net.. i have to log in as super user "su -" and then probe the
device and then connect.

I managed to get the probe_device.sh as a scripting file, but i dont
know how to log in as root and then run the commands all from one
scripting file. My parents are used to Windows and its dialers. I
think they will find it very useful (i dont wanna give them root
password) if i can create one scripting file that they can run to
connect to the net. is there a way by which i can log in as root in 1
single command? (not simple "su". "su -" or "su -l" is required)

thank you
-- 
Prashanth Mohan
http://prashanthmohan.tk
http://prashmohan.blogspot.com
---
Why geeks like computers: unzip, strip, touch, finger, grep, mount,
fsck, more, yes,fsck,fsck,fsck,umount, sleep.

10 Sin
20 goto Hell
---

Other related posts: