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

    Default Under which user permission does Linloader run scripts?

    I gave up on telnetd because my firmware doesn't have the required shared libs (as far as I know).

    Now I'm trying to setup Bragon's SSHD because I only noticed a frase about "Telnet desabled in new firmwares" in the SSHD README file.

    Following the README file instructions I've created this script:

    mkdir -p /ezxlocal/etc/dropbear
    cd /ezxlocal/etc/dropbear
    /mmc/mmca1/.system/QTDownLoad/sshd/dropbearkey -t rsa -f dropbear_rsa_host_key
    ...

    I've tried to run using LinLoader. But mkdir returned this error:
    mkdir: cannot create directory `/ezxlocal/etc': Permission denied

    This is the ezxlocal's permissions.
    drwxr-xr-x 9 root root 0 Dec 31 1969 ezxlocal

    This rises the question: The script is not root. Under which user permissions does LinLoader runs my scripts?
    Anyone know?


    I search the phone and found no SU or SUDO or WHOAMI.

    Well...now I will try to CHMOD ezxlocal.

    Clovis
    (not from KKK)

  2. #2

    Default duh!!

    crap...I'm not root (using linloader)....can't CHMOD /ezxlocal

  3. #3
    Join Date
    Dec 2006
    Location
    Brazil
    Posts
    52

    Default

    Hey Clovis,
    I've tried the commands who/users and none worked out.
    I got curious to find out what user the linloader runs under.
    Let us know if you find that out!
    A1200i - firmware: R532L4_G_11.40.0FRBP
    microSD 128 Mb (1 Gb on the way )

  4. #4

    Default found

    User EZX!!

    still can't chmod nor su nor sudo.
    on other thread someone told me that Mkezx has su.

    I'm gonna setup a linux environment with Mkezx next week.

    gosh...have not used linux for the last 8 years.

  5. #5
    Join Date
    Dec 2006
    Location
    Brazil
    Posts
    52

    Default

    How did you find out what user was logged?!
    A1200i - firmware: R532L4_G_11.40.0FRBP
    microSD 128 Mb (1 Gb on the way )

  6. #6

    Default Criativity

    Quote Originally Posted by carneiro
    How did you find out what user was logged?!
    Just used imagination

    Since I don't have WHOAMI (yet). I remembered (from my old *nix days) that ps shows username for process. Just used

    Code:
    ps -u
    Your are the user running bash (or whatever shell you are using to execute the script).


 
+ Reply to Thread

Similar Threads

  1. can't run scripts by linloader
    By Amir_6723 in forum Scripting
    Replies: 9
    Last Post: 12-03-2009, 05:09 PM
  2. How to Change Application permission.
    By rsaravana19 in forum ROKR Z6
    Replies: 1
    Last Post: 04-24-2009, 01:09 PM
  3. Why do we need Linloader to load scripts
    By Ven in forum Scripting
    Replies: 3
    Last Post: 09-13-2008, 08:43 AM
  4. Q: Howto get the phone to run scripts at startup
    By aksd in forum E6 General Chat
    Replies: 15
    Last Post: 10-23-2007, 03:51 PM
  5. Linloader & Scripts for A768i
    By jerin in forum A768i/A760 General Chat
    Replies: 5
    Last Post: 02-08-2006, 07:38 PM

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