Join Today
+ Reply to Thread
Results 1 to 8 of 8
  1. #1

    Default How to get root privileges in Qonsole program?

    Any ideas?

  2. #2

    Default Re: How to get root privileges in Qonsole program?

    I've made a modified rootfs that replaces almost everything possible with busybox, and includes su. I can use su to get root in Qonsole, but PST does not seem to work with this firmware - whether because of the USB plug handling changes or the busybox replacements, I am not sure. I'll make it public once I have something that does everything the stock firmware does (heh, and of course all of the stuff I want).

    FWIW, I have Qonsole but don't use it much at all. The phone is set up to stay in USBNet mode, and I don't do any hacking on it that requires shell access unless I'm at home.

  3. #3

    Default Re: How to get root privileges in Qonsole program?

    Qconsole get root account from its startup.

  4. #4

    Default Re: How to get root privileges in Qonsole program?

    No, when launched from the program launcher, Qonsole runs as ezx, not root. Try running "id" in console, you'll see.

  5. #5

    Default Re: How to get root privileges in Qonsole program?

    Write a little program that calls its first argument, call it mysudo and give it suid 0.

    `mysudo bash`

    If you're not familiar with UID and EUID read man(2) getuid

  6. #6
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default Re: How to get root privileges in Qonsole program?

    Code stolen from qonsole neo version (main.lin).

    Code:
    #! /bin/sh
    
    if [ "$(id -u)" != "0" -a -z "$1" ]; then
      exec /sbin/start-stop-daemon -S -c root:root -x "$0" -- restart
      exit 1
    fi
    
    export QTDIR="./qt"
    export LD_LIBRARY_PATH="./lib:./qt/lib:$LD_LIBRARY_PATH"
    export PS1="# "
    export SHELL="/bin/bash"
    
    if [ ! -x ./qonsole ]; then
      chmod +x ./qonsole
    fi
    exec ./qonsole
    exit 1
    eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6

  7. #7

    Default Re: How to get root privileges in Qonsole program?

    If you run applications coded with sam7r ezx sdk with the above code, some icons will be missing (the X on the bottom right, for example). You also need to
    Code:
    export EZX_RES_ICON_PATH=/usr/language/icon
    Here's the script I use:

    Code:
    #!/bin/bash
    
    #path to this script
    OWNAPP=/ezxlocal/usr/bin/sublue.sh
    
    #path to application that should run with root priviledges
    APP=/ezxlocal/usr/bin/blue
    
    if [ "$(id -u)" != "0" -a -z "$1" ]; then
      exec /sbin/start-stop-daemon -S -c root:root -x $OWNAPP -- restart
      exit 1
    fi
    
    export QTDIR=/usr/lib/ezx
    export LD_LIBRARY_PATH=/usr/lib/ezx/lib:/usr/language/vr/english/lib:/usr/language/vr/mandarin/lib:/usr/language/vr/common/lib
    export EZX_RES_FONT_PATH=/usr/lib/ezx/lib/fonts
    export EZX_RES_ICON_PATH=/usr/language/icon
    
    if [ ! -x $APP ]; then
      chmod +x $APP
    fi
    
    exec $APP
    exit 1

  8. #8

    Default Re: How to get root privileges in Qonsole program?

    Sorry. I use the NEO version so it got the root login as default.


 
+ Reply to Thread

Similar Threads

  1. looking for qonsole
    By peje in forum A780 General Chat
    Replies: 5
    Last Post: 08-15-2006, 04:15 PM
  2. Qonsole for A780
    By eakrin in forum A780 General Chat
    Replies: 19
    Last Post: 08-10-2006, 11:59 AM
  3. [A925] program closed..program:music...reason code:user..
    By ferio in forum Symbian UIQ Symbian V7(A1000, M1000)
    Replies: 1
    Last Post: 04-29-2006, 03:21 PM
  4. Telneting from the Qonsole
    By jefr001 in forum E680i General Chat
    Replies: 0
    Last Post: 11-11-2005, 07:06 PM
  5. how to get root access to phone from *.lin or qonsole ?
    By lesha-v in forum E680i General Chat
    Replies: 3
    Last Post: 09-13-2005, 08:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1