Results 1 to 9 of 9
Discuss Terminal (Term-vt100) Su or Root Login at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; Greetings to all. I recently sat down with my 1.0.2 (3.9BL) iPhone and upgraded it ...
  1. #1
    Newbie Array

    Join Date
    Sep 2007
    Posts
    6
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Terminal (Term-vt100) Su or Root Login

    Greetings to all.

    I recently sat down with my 1.0.2 (3.9BL) iPhone and upgraded it to 1.1.3. Everything went without a hitch, I've got 1.1.3 running now and most applications are happy.

    I'm having one issue, however, with Terminal (r207- previously Term-vt100).

    Initially, Terminal wouldn't let me log in. Root, Mobile, nothing. Fine, so I searched the forums. Turns out it's a permission error due to everything running under Mobile now, rather then Root. So I did a chmod +s on /Applications/Terminal.app/Terminal.

    That fixed the login problem. Terminal now logs in automagically as Mobile (even though I changed Mobile's password- I did NOT use passwd [which I renamed], I did this by hand in /etc/master.passwd, and Springboard is still happy). So I can do 60% of the stuff I used to be able to do as Mobile, but I cannot log in as Root.

    First, Terminal never asks me to login. It just throws me into Mobile, and that's that.

    Second- SU doesn't work, I just get an "Incorrect login".

    Third- even spawning login again (don't know if this would work) and specifying root & my password fails.

    Now, I can log in as root over SSH. It accepts my hand-forged password in /etc/master.passwd, and I've got grand access to the entire phone. I cannot login as Mobile though- it accepts the login but just kicks me out (over SSH). Yet on the phone, I'm automatically logged in as Mobile, and cannot seem to get into Root.

    Any ideas? It would be nice to either have sudo, su, or root access via Terminal. The only thing I've done is upload Terminal.app by hand (r207), and the chmod +s.

    Cheerio.
    -Dennis



  2. #2
    Advanced Array

    Join Date
    Oct 2007
    Posts
    43
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    And how did you do chmod +s on /Applications/Terminal.app/Terminal when your terminal is asking you for a login?!

    How did you enter the command?!
    8GB iPhone
    BL 3.9
    FW 1.1.2 - Upgraded from 1.1.1
    Working Perfectly in Egypt

  3. #3
    Newbie Array

    Join Date
    Sep 2007
    Posts
    6
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    As I said....

    Initially, Terminal didn't work. It asked me for a login and password, neither Root nor Mobile worked (and I did have the correct password).

    I can get into the phone via SSH with ROOT just fine.

    I did a chmod +s from there (SSH), and then Terminal sprang to life on the iPhone and automatically logs me in as Mobile.

    It does not, however, give me the option to login (it just throws me into zsh as 'mobile'), and I cannot `su` up into Root.

    What I would like to know how to do, is to get into the root account from Terminal. SSH and **everything else** is working fantastically. I just can't get into Root from Terminal, on the iPhone.

    -SC

  4. #4
    Senior Professional Array

    Join Date
    Oct 2007
    Posts
    108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    Dennis:

    At this point, you can't. BSD Subsystem 2.0 has a bug that prevents su from working from mobile. I ended up reverting to 1.98, which works fine (after a couple of 'fixes') as root, but requires a password each time you launch it (alpine). Still better than the lack of power you get running only as mobile. See this thread:

    http://modmyifone.com/forums/showthr...t=29987&page=2
    Last edited by iPhoneDave; 02-10-2008 at 05:45 PM.

  5. #5
    Senior Professional Array

    Join Date
    Mar 2007
    Posts
    176
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    16

    Default

    Quote Originally Posted by Dennis Nedry View Post
    As I said....

    Initially, Terminal didn't work. It asked me for a login and password, neither Root nor Mobile worked (and I did have the correct password).

    I can get into the phone via SSH with ROOT just fine.

    I did a chmod +s from there (SSH), and then Terminal sprang to life on the iPhone and automatically logs me in as Mobile.

    It does not, however, give me the option to login (it just throws me into zsh as 'mobile'), and I cannot `su` up into Root.

    What I would like to know how to do, is to get into the root account from Terminal. SSH and **everything else** is working fantastically. I just can't get into Root from Terminal, on the iPhone.

    -SC
    I solved this by installing SUID Lib Fix from installer (tweaks 1.1.3) ...


  6. #6
    Senior Professional Array

    Join Date
    Oct 2007
    Posts
    108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    Quote Originally Posted by patvg View Post
    I solved this by installing SUID Lib Fix from installer (tweaks 1.1.3) ...
    You missed the a critical detail of his post: He's running 2.0.7. This is a totally different issue.

  7. #7
    Newbie Array

    Join Date
    Sep 2007
    Posts
    6
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Okay, so 207 appears to be broken.

    I've tried 206 and 198, both builds of Mobile Terminal just give me a somewhat blank screen (with the curve gradient at the top- no keyboard, no login), then exit. I can't get any of them to launch properly.

    Any ideas?

    -SC

  8. #8
    Newbie Array

    Join Date
    Sep 2007
    Posts
    6
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Err...

    Term-vt100 (198) from Googlecode refuses to launch- but it works fine from Installer.app. Same permissions and everything too.

    The one from installer.app after doing a chmod +s on the executable and the "SUID Lib" hack (by hand, from SSH), it's asking me for a login and password. I can get into root from my iPhone.

    Problem solved.

    -SC

  9. #9
    Senior Professional Array

    Join Date
    Oct 2007
    Posts
    108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    They both should work fine, but I've only used 198. Here's what I had to do from Terminal on my Desktop:

    ssh in as root

    chmod +s /Applications/Term-vt100.app

    Try it and see if it works now. It should ask for a password, enter alpine unless you've changed it.

    If it doesn't accept the password, do this:

    chmod 4755 /usr/bin/login
    mkdir -p /usr/local/arm-apple-darwin/lib
    ln -s /usr/lib/libgcc_s.1.dylib /usr/local/arm-apple-darwin/lib/libgcc_s.1.dylib

    Try again.

    That should do the trick, but you may still have an issue with the backspace key not working. To fix that problem, there are many solutions, here's one:

    add the following to /etc/profile (which can be opened with any plain text editor):

    TERM="vt102"
    export TERM

    Reboot the phone and try again.

 

 

Similar Threads

  1. [term-vt100] can't login
    By shibits in forum Free Toolchain Software (Cydia App's)
    Replies: 27
    Last Post: 07-10-2008, 03:28 AM
  2. [Term-VT100] password with 1.1.4
    By Mp3lll in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 05-22-2008, 07:04 PM
  3. [term-vt100] can't login
    By shibits in forum General
    Replies: 0
    Last Post: 01-27-2008, 03:20 PM
  4. VT100 terminal with login screen?
    By peu in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 11-07-2007, 11:04 PM
  5. Term vt100 keeps crashing
    By friscoskid in forum iPhone "2G" (Rev. 1)
    Replies: 2
    Last Post: 10-07-2007, 08:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:05 AM.
twitter, follow us!