webOS Nation Forums
> webOS apps and software
> webOS development
>
OK ROM comes
First
...
38 43 44 45 46 47 48
49 50 51 52 53
...
Last
Developer:
rwhitby
at: 06:46 AM 06/14/2009
Originally Posted by pyrognome:
Dude, I have helped out. I wrote a wiki on how to add and delete pages in the app launcher.
That's exactly the type of page I was talking about - thanks for your great contribution. Let's hope that lots of other folks follow your lead.
-- Rod
Developer:
rwhitby
at: 06:47 AM 06/14/2009
Originally Posted by SDash:
O_O I didn't notice the list of pages on the wiki page.
Originally I was using an old post's urls for the sftp-server files.
Now I'm on track 
EDIT: Got stuck trying the to create dropbearmod
from this command
It shows up as -sh: cannot create dropbearmod: Permission denied
[CODE]sed 's/\/usr\/libexe/\/opt\/libexe/g' dropbearmulti > dropbearmod[/CODE]
That command shouldn't be required any more - we modified the dropbear build so that change is already done in the binary in the feed.
-- Rod
Been lurking for days now, decided to finally get in on the action.
I've tried following the directions for the SFTP access here and on the wiki, but I'm having trouble. I can actually SFTP in just fine as long as the "su -c" is removed from the server name. Problem is, once I'm in, I can't get root. This is obviously pointless when I want to make changes.
Please help.
Member:
RickNY
at: 11:16 AM 06/14/2009
Originally Posted by jhoff80:
Edit2: Hmm, after a reboot, it doesn't appear to be working again. Maybe I do need to still do the sed command.
Yeah -- I think the reason it worked for you the 2nd time around is because if you just removed the packages that you put in the first time, it still leaves the patched dropbearmulti behind.
Edit: I just saw rhitby's comment that the dropbear build was modified.
And yes, it appears sed is already on the Pre, so that step isnt necessary..
Rick
Member:
RickNY
at: 12:21 PM 06/14/2009
I just updated the wiki pages for SFTP access.. Please comment or modify it as you see fit if you think any changes are necessary.
Member:
jhoff80
at: 01:02 PM 06/14/2009
Originally Posted by RickNY:
I just updated the wiki pages for SFTP access.. Please comment or modify it as you see fit if you think any changes are necessary.
Yeah, adding the NOPASSWD line for the sftp server to the sudoers file is what fixed it for me, thanks.
Edit: Nope, weird, sometimes it works and sometimes it doesn't. I'll have to try doing somethings from Putty when I get a chance.
Sith Lord of the Honey Pot:
Darth Pooh
at: 01:47 PM 06/14/2009
Originally Posted by jhoff80:
Yeah, adding the NOPASSWD line for the sftp server to the sudoers file is what fixed it for me, thanks.
Edit: Nope, weird, sometimes it works and sometimes it doesn't. I'll have to try doing somethings from Putty when I get a chance.
So you can do drag and drop from an FTP client?
Interesting... do you see /media/internal as well?
Member:
kaze0
at: 02:19 PM 06/14/2009
Member:
jhoff80
at: 02:21 PM 06/14/2009
Originally Posted by Darth Pooh:
So you can do drag and drop from an FTP client?
Interesting... do you see /media/internal as well?
Drag and drop from an sftp client such as WinSCP. And yes, I can see /media/internal that way.
To anyone who has any idea, does anyone have any idea why the command sudo /opt/libexec/sftp-server is asking for a password, even though sudoers is clearly set to say (and the myusername is replaced with the actual username):
myusername ALL=NOPASSWD: /opt/libexec/sftp-server
root ALL=(ALL) ALL
myusername ALL=(ALL) ALL
That appears to be what's preventing me from having it always work, since WinSCP doesn't support if it asks for a password before performing the sftp-server command.
Member:
seekis
at: 02:21 PM 06/14/2009
Member:
Turbo-SC
at: 02:30 PM 06/14/2009
thank you very much kind sir.
Member:
RickNY
at: 02:57 PM 06/14/2009
Originally Posted by jhoff80:
myusername ALL=NOPASSWD: /opt/libexec/sftp-server
root ALL=(ALL) ALL
myusername ALL=(ALL) ALL
You need to put the NOPASSWD line after the ALL line for your user -- its read in order, the ALL entry trumps the NOPASSWD
[CODE]root ALL=(ALL) ALL
myusername ALL=(ALL) ALL
myusername ALL=NOPASSWD: /opt/libexec/sftp-server
[/CODE]
Member:
SDash
at: 03:10 PM 06/14/2009
Originally Posted by RickNY:
I just updated the wiki pages for SFTP access.. Please comment or modify it as you see fit if you think any changes are necessary.
Verified
Now I've got my new global search image on it
Member:
RickNY
at: 03:31 PM 06/14/2009
I made a note in the wiki regarding the order of the NOPASSWD line..
Developer:
rwhitby
at: 06:12 PM 06/14/2009
Originally Posted by RickNY:
You need to put the NOPASSWD line after the ALL line for your user -- its read in order, the ALL entry trumps the NOPASSWD
[CODE]root ALL=(ALL) ALL
myusername ALL=(ALL) ALL
myusername ALL=NOPASSWD: /opt/libexec/sftp-server
[/CODE]
What does the first of those three lines do? Surely root doesn't need sudo access ...
BTW, I'm hoping we can get root access via ssh keys working, then everyone can just set up ssh keys and not worry about sudo any more ...
-- Rod
Member:
jhoff80
at: 06:35 PM 06/14/2009
Originally Posted by rwhitby:
What does the first of those three lines do? Surely root doesn't need sudo access ...
BTW, I'm hoping we can get root access via ssh keys working, then everyone can just set up ssh keys and not worry about sudo any more ...
-- Rod
I'm pretty sure that was already in there, I know I didn't ever specifically add it.
Member:
RickNY
at: 07:02 PM 06/14/2009
Originally Posted by rwhitby:
What does the first of those three lines do? Surely root doesn't need sudo access ...
I believe because the sudo command allows one user to run specific (or all) commands in the context of root or
any other user, the line exists by default in any default sudoers file I have ever seen. While root usually has free reign to run any command, I believe this line is necessary to give root the ability to run any command in the context of any other user on the system (ala sudo -u someuser )
As I've said previously, I'm a *nix amateur, so I could very well be mistaken. By the way, the line was in there originally by default.
Rick
Member:
jdwky
at: 07:34 PM 06/14/2009
I must be the only one having problems getting in to root. I've followed the steps, and when I enter "./novaterm" into Terminal it just comes back and says Bus Error. What gives??
Originally Posted by jdwky:
I must be the only one having problems getting in to root. I've followed the steps, and when I enter "./novaterm" into Terminal it just comes back and says Bus Error. What gives??
you don't enter anything...
start dev mode.
install the drivers like they say, then python, then connect the phone, then run talk.py
that opens up root.
then you just telnet into it over wifi, install whatever backdoor you want, then disable dev mode.
also: no offense, but if you are having a hard time with this, it's probably a REALLY bad idea for you to do this, as you can easily fark up your phone.
I'm a Linux sysadmin at a big company, and I deal with this on a daily-basis, and I still managed to screw up my phone, requiring a full-wipe using WebOS Doctor.
If I were you, I'd stay the heck out of there.
Member:
jdwky
at: 08:17 PM 06/14/2009
Originally Posted by ScrapMaker:
you don't enter anything...
start dev mode.
install the drivers like they say, then python, then connect the phone, then run talk.py
that opens up root.
then you just telnet into it over wifi, install whatever backdoor you want, then disable dev mode.
Sorry, I should have mentioned, I'm using a Mac.
First
...
38 43 44 45 46 47 48
49 50 51 52 53
...
Last
webOS Nation Forums
> webOS apps and software
> webOS development
>
OK ROM comes