Hi

It won't work for the simple reason that password are read form keyboard(tty?)
and not from stdin. It's like difference between getpasswd and scanf...

Shridhar

Surkit M wrote:

>
> I want a script to that effect which I can give 711 premisssions.
> I wrote this
> #!/bin/bash
> su root
> echo <password>
> kppp
>
> I thought it would work, it doesn't. Please suggest corrections or
> alterations.
> Also I would want that the shell window closes automatically once the
> user has quit kppp or user logs out of root


----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to