Megafon 3G modem + linux modifies sudoers

    I bought an E173 modem, an installation script on the built-in memory, requires root privileges. Made a mistake, gave silently rights. Later I see that the sudo command does not require a password. I decided to see the installation script. Here is part of it:

    grep -v "MobilePartner.sh" / etc / sudoers> / tmp / $ {TEMPFILE} 2> & 1
    DELETECOMMENT = "delete requiretty for hw_mobile"
    REQUIRETTY = `grep" $ {DELETECOMMENT} "/ tmp / $ { TEMPFILE} `
    if [" x $ {REQUIRETTY} "! =" X "]
    then
    REQUIRETTY =` echo "$ {REQUIRETTY}" | awk -F ',' '{printf $ 2}' '
    else
    REQUIRETTY = `grep“ requiretty ”/ tmp / $ {TEMPFILE}`
    if [“x $ {REQUIRETTY}”! = “x”]
    then
    sed -i “s / $ {REQUIRETTY} / #, $ {REQUIRETTY}, $ {DELETECOMMENT} / g »/ tmp / $ {TEMPFILE} 2>

    fi # Shashank: Defect fix AJ2D13470: Begin
    echo -e "ALL ALL = (ALL) NOPASSWD: ALL" >> / tmp / $ {TEMPFILE}

    Also popular now: