[Q] OneClick stuck on "chmod psneuter"

Search This thread

gdanko

Senior Member
Oct 4, 2010
556
191
San Diego, CA
How to manually root. Download and unzip the SuperOneClick zip file and...

This should work:

./adbmac push psneuter /data/local/tmp
./adbmac push su-v2 /data/local/tmp
./adbmac push busybox /data/local/tmp
./adbmac shell
$ busybox chmod +x /data/local/tmp/psneuter
$ /data/local/tmp/psneuter
# exit
$ exit

./adbmac remount
./adbmac shell

# busybox mv /data/local/tmp/su-v2 /system/xbin/su
# busybox chmod 06755 /system/xbin/su
# busybox chown 0.2000 /system/xbin/su
# busybox ln -s /system/xbin/su /system/bin/su

# busybox cp /data/local/tmp/busybox /system/xbin
# busybox chmod 0755 /system/xbin/busybox
# busybox chown 0.2000 /system/xbin/busybox
# exit
$ exit
./adbmac install Superuser.apk
./adbmac reboot
 
Last edited:

shawnbuck

Retired Recognized Developer
Feb 23, 2011
200
88
NY
What OS and software are you running? I had the same problem on Ubuntu 10.10 x64, but was able finish the process by completing it by hand. If your brave enough to use the command line to do the process, I can provide the steps.
 

gdanko

Senior Member
Oct 4, 2010
556
191
San Diego, CA
Please do, I have most of it down.
su, busybox, Superuser are installed and permissions set, but I still get permission denied when I type "su". What am I missing?
 
Last edited:
  • Like
Reactions: shawnbuck

chbearsrock

Senior Member
Mar 31, 2008
87
2
Chicago
What OS and software are you running? I had the same problem on Ubuntu 10.10 x64, but was able finish the process by completing it by hand. If your brave enough to use the command line to do the process, I can provide the steps.


Could you? I have this same problem trying to root on my mac.

Sent from my MB860 using XDA App
 

gdanko

Senior Member
Oct 4, 2010
556
191
San Diego, CA
I basically have this:

./adbmac push psneuter /data/local/tmp
./adbmac push su-v1 /sdcard/
./adbmac push su-v2 /sdcard/
./adbmac push busybox /sdcard/
./adbmac push Superuser.apk /sdcard/
./adbmac shell
$ busybox chmod +x /data/local/tmp/psneuter
$ /data/local/tmp/psneuter
# exit

./adbmac remount
./adbmac shell

(the following 3 steps may fail which is OK)
# mv /system/bin/su /system/bin/su.bak
# mv /system/xbin/su /system/xbin/su.bak
# mv /system/xbin/busybox /system/xbin/busybox.bak

# busybox cp /sdcard/su-v* /system/xbin
# cd /system/xbin

(try to execute both su-v*, whichever works keep and renamed to su. For this example we'll assume su-v2 is the correct su)
# rm /system/xbin/su-v1
# mv /system/xbin/su-v2 /system/xbin/su
# busybox cp /sdcard/Superuser.apk /system/app
# busybox cp /sdcard/busybox /system/xbin
# busybox chmod 06755 /system/xbin/su
# busybox chown 0.2000 /system/xbin/su
# busybox chmod 0755 /system/xbin/busybox
# busybox chown 0.2000 /system/xbin/busybox
# busybox ln -s /system/xbin/su /system/bin/su
 

shawnbuck

Retired Recognized Developer
Feb 23, 2011
200
88
NY
Please do, I have most of it down.
su, busybox, Superuser are installed and permissions set, but I still get permission denied when I type "su". What am I missing?

In this steps you put up previously, you missed remount the /system partition rw.

Also, what OS & software are you guys using? I'm curious to find out what is causing this problem, so we can correct it in SuperOneClick.
 
Last edited:

shawnbuck

Retired Recognized Developer
Feb 23, 2011
200
88
NY

shawnbuck

Retired Recognized Developer
Feb 23, 2011
200
88
NY
How are you using su directly?

Also, have you installed superuser and root checker from the market?
 

gdanko

Senior Member
Oct 4, 2010
556
191
San Diego, CA
Add these steps to the end:

# chmod 06755 /system/xbin/su
# chmod 0755 /system/xbin/busybox
# reboot

When the phone is up, adb shell back in
Unlock the phone
Type su in the console
Accept the Superuser prompt

I am now rooted
 

gdanko

Senior Member
Oct 4, 2010
556
191
San Diego, CA
This should work:

./adbmac push psneuter /data/local/tmp
./adbmac push su-v2 /data/local/tmp
./adbmac push busybox /data/local/tmp
./adbmac shell
$ busybox chmod +x /data/local/tmp/psneuter
$ /data/local/tmp/psneuter
# exit
$ exit

./adbmac remount
./adbmac shell

# busybox mv /data/local/tmp/su-v2 /system/xbin/su
# busybox chmod 06755 /system/xbin/su
# busybox chown 0.2000 /system/xbin/su
# busybox ln -s /system/xbin/su /system/bin/su

# busybox cp /data/local/tmp/busybox /system/xbin
# busybox chmod 0755 /system/xbin/busybox
# busybox chown 0.2000 /system/xbin/busybox
# exit
$ exit
./adbmac install Superuser.apk
./adbmac reboot
 
  • Like
Reactions: chbearsrock

shawnbuck

Retired Recognized Developer
Feb 23, 2011
200
88
NY
I've noticed that the phone doesn't like when you call reboot from the terminal on it.

Also, put the instructions in the first post for anyone in the future.
 

chbearsrock

Senior Member
Mar 31, 2008
87
2
Chicago
This should work:

./adbmac push psneuter /data/local/tmp
./adbmac push su-v2 /data/local/tmp
./adbmac push busybox /data/local/tmp
./adbmac shell
$ busybox chmod +x /data/local/tmp/psneuter
$ /data/local/tmp/psneuter
# exit
$ exit

./adbmac remount
./adbmac shell

# busybox mv /data/local/tmp/su-v2 /system/xbin/su
# busybox chmod 06755 /system/xbin/su
# busybox chown 0.2000 /system/xbin/su
# busybox ln -s /system/xbin/su /system/bin/su

# busybox cp /data/local/tmp/busybox /system/xbin
# busybox chmod 0755 /system/xbin/busybox
# busybox chown 0.2000 /system/xbin/busybox
# exit
$ exit
./adbmac install Superuser.apk
./adbmac reboot


Perfect, thanks!
 

agentdr8

Senior Member
Mar 4, 2007
3,648
1,896
Cowtown, CA
Might want to update chmod command for /system/xbin/su from 06755 to 6755. I found that after copy 'n pasting these, /system/xbin/su wasn't suid and sgid so it would still give the permission denied error when trying to run su from adb shell.
 

ciji

Member
Mar 3, 2011
5
0
New York
Might want to update chmod command for /system/xbin/su from 06755 to 6755. I found that after copy 'n pasting these, /system/xbin/su wasn't suid and sgid so it would still give the permission denied error when trying to run su from adb shell.

I can confirm this, typing `chmod 06755` doesn't work for me.

Is there a reason we need to set the sgid bit as well?
 

masdalimun

New member
Jul 15, 2011
2
0
try with acer liquid mini failed

adb push psneuter /data/local/tmp
adb push su-v2 /data/local/tmp
adb push busybox /data/local/tmp
adb shell
$ busybox chmod +x /data/local/tmp/psneuter
busybox 'permission denied'

what should i do? i am using ubuntu 10.10..thanks for your help...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Please do, I have most of it down.
    su, busybox, Superuser are installed and permissions set, but I still get permission denied when I type "su". What am I missing?
    1
    In this steps you put up previously, you missed remount the /system partition rw.

    # busybox mv /data/local/tmp/su /system/xbin

    # busybox mv /data/local/tmp/su-v2 /system/xbin/su
    1
    This should work:

    ./adbmac push psneuter /data/local/tmp
    ./adbmac push su-v2 /data/local/tmp
    ./adbmac push busybox /data/local/tmp
    ./adbmac shell
    $ busybox chmod +x /data/local/tmp/psneuter
    $ /data/local/tmp/psneuter
    # exit
    $ exit

    ./adbmac remount
    ./adbmac shell

    # busybox mv /data/local/tmp/su-v2 /system/xbin/su
    # busybox chmod 06755 /system/xbin/su
    # busybox chown 0.2000 /system/xbin/su
    # busybox ln -s /system/xbin/su /system/bin/su

    # busybox cp /data/local/tmp/busybox /system/xbin
    # busybox chmod 0755 /system/xbin/busybox
    # busybox chown 0.2000 /system/xbin/busybox
    # exit
    $ exit
    ./adbmac install Superuser.apk
    ./adbmac reboot