*BSD News Article 48859


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!pressimage!mon2-02.planete.net!user
From: jcaron@pressimage.net (Jacques Caron)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How would you do this ?
Date: Tue, 15 Aug 1995 02:30:18 +0200
Organization: Pressimage, France
Lines: 34
Message-ID: <jcaron-1508950230180001@mon2-02.planete.net>
References: <aak2.808401125@ra.msstate.edu> <40nr0b$jo9@gate.sinica.edu.tw> <aak2.808433446@Ra.MsState.Edu>
NNTP-Posting-Host: mon2-02.planete.net
X-Newsreader: Value-Added NewsWatcher 2.0b27+

In article <aak2.808433446@Ra.MsState.Edu>, aak2@Ra.MsState.Edu (Atif
Ahmad Khan) wrote:

>taob@gate.sinica.edu.tw (Brian Tao) writes:
>
>>In article <aak2.808401125@ra.msstate.edu>, Atif Ahmad Khan
<aak2@Ra.MsState.Edu> wrote:
>>>
>>>I put the command "start-my-program"  in file /etc/rc.local but don't
>>>know how to autmate enternig the password.  I can't be near the machine
>>>and remember to enter the password everytime it reboots.  Any help would
>>>be appreciated.  Thanks.
>
>>    Dumb question... but if you want to automatically enter the
>>password so it will be able to boot unattended, what's the point of
>>having a password there in the first place?
>
> 
> Because I didn't write the program.  And I am not as worried about the
> security aspect of the program as much as I am about it working "all the time"

Depends a lot on how it is done. If it is done somewhat properly (a la
login/su), there's no way you can automate it (it resets stdin/out to the
tty). If it's a simple gets or whatever, then a redirection is fine:

echo "password" | start_my_program

Jacques.

--- Jacques Caron - Pressimage Telematique
    Mail:   5/7 rue Raspail - 93108 Montreuil Cedex - France
    E-mail: jcaron@pressimage.net
    Tel:    +33 (1) 49 88 63 56
    Fax:    +33 (1) 49 88 63 64