1. Hello! You are currently viewing our community as a guest. Register today and apply to be a member of one of the longest standing gaming communities around. Once you have registered learn about our team and how to apply!

BASH Programming..

Discussion in 'General Open/Public Discussion' started by ORANGE, 1 Sep 2006.


  1. ORANGE

    ORANGE DragonWolf

    ....help.

    Okay I know this is the wrong place to ask but everywhere else I go I get responses that are of no use.

    What I'm trying to do is respond to a password entry prompt...
    Seems easy but no one seems to know how to do this properly

    All it needs to do by the way is run updatedb.
    sudo updatedb is what I'm trying to run
    then it asks for the password and I can't get it to take a user entered variable and pass it over.

    Please someone help.
    And if it turns out on the first or second pages of google for someone I'm gonna flip.

    EDIT: LOL I'm a moron.
    sudo updatedb << $USERPASS
     
    Last edited: 1 Sep 2006
  2. symen

    symen DragonWolf

    Another approach, if you don't want to deal with the password prompt, is to apply the NOPASSWD: parameter to the relevant line in your /etc/sudoers file.
     

Share This Page