execute apps as root / login as root using a script

Discussion in 'iPod touch Firmware 1.1.4 Discussions' started by T_1, Apr 25, 2008.

  1. T_1

    T_1 New Member

    Joined:
    Jan 28, 2008
    Messages:
    84
    Likes Received:
    0
    Hi all!
    I am currently writing an app( sh script is executed) which changes the mac of my touch
    but if you want to change your mac using ifconfig you need to be root. and thats my problem:
    on 1.1.4 apps are lauched using mobile user but mobile user have no permission to execute my command.
    so i tried to put a "login root" before my inconfig but there is no way to completly login as root cause i cant hand over my password
    does anybody know how i can solve this problem?

    p.s.: i dont want to go to terminal to execute my script so i used an app to launch it
  2. jakecigar

    jakecigar New Member

    Joined:
    Mar 7, 2008
    Messages:
    83
    Likes Received:
    6
    Device:
    iPhone 4 (Black)
    the only way to script ssh is to "swap keys" to permit logging in without a password.

    you'll have to google for it.

    ssh has 2 modes, keys and passwords.
    1 person likes this.
  3. T_1

    T_1 New Member

    Joined:
    Jan 28, 2008
    Messages:
    84
    Likes Received:
    0
    how can i do this?
  4. jakecigar

    jakecigar New Member

    Joined:
    Mar 7, 2008
    Messages:
    83
    Likes Received:
    6
    Device:
    iPhone 4 (Black)
    you'll have to google for it.

    I didn't see that you repped me!
    1 person likes this.
  5. T_1

    T_1 New Member

    Joined:
    Jan 28, 2008
    Messages:
    84
    Likes Received:
    0
    thx for the hint
  6. T_1

    T_1 New Member

    Joined:
    Jan 28, 2008
    Messages:
    84
    Likes Received:
    0
    Does anybody else know how i can solve my problem?

Share This Page