Unix Login??

Discussion in 'Mac Help/Tips' started by Falleron, Mar 30, 2002.

  1. Falleron macrumors 68000

    Falleron

    Joined:
    Nov 22, 2001
    Location:
    UK
    #1
    I want to be able to use the Apple + S key combination at startup to boot straight into unix. However, I get to unix + then dont seem to be able to log into my account! Any ideas? I just get a message login incorrect. It works from the OSX user panel fine, but I want to be able to go directly into unix.
     
  2. Rower_CPU Moderator emeritus

    Rower_CPU

    Joined:
    Oct 5, 2001
    Location:
    San Diego, CA
    #2
    Hmmmm...

    I just tried it and it automatically logged me in as root...not sure if that's good.

    If that's what it's supposed to do, then just make sure your root account is enabled.
     
  3. Falleron thread starter macrumors 68000

    Falleron

    Joined:
    Nov 22, 2001
    Location:
    UK
    #3
    How do you make the root account enabled? Is there anything wrong with logging in this way?
     
  4. Rower_CPU Moderator emeritus

    Rower_CPU

    Joined:
    Oct 5, 2001
    Location:
    San Diego, CA
    #4
    Usually you go through the Terminal and type:
    sudo passwd root

    It will prompt you for the passwd...

    The reason I say that it's not good that it automatically logs in as root is that since the root user has complete control over the system, it's kind of unsafe that anyone can simply reboot your machine and get to console mode having complete control of your system.
     
  5. Falleron thread starter macrumors 68000

    Falleron

    Joined:
    Nov 22, 2001
    Location:
    UK
    #5
    I have done the root password. However, when I boot up using Apple + S, I still cant get access to my computer! What should I be logging in as? Normal user? Is there a special login name for the root?

    Thanks
     
  6. Rower_CPU Moderator emeritus

    Rower_CPU

    Joined:
    Oct 5, 2001
    Location:
    San Diego, CA
    #6
    What dialog do you get when you boot into console mode?

    On my machine I simply have the "localhost%" prompt, meaning I'm already logged in.

    If you get that prompt type "whoami" to see who you're logged in as.
     
  7. Falleron thread starter macrumors 68000

    Falleron

    Joined:
    Nov 22, 2001
    Location:
    UK
    #7
    I get the same: localhost%

    I cant browse any directories though like I am used to though (using cd "name of directory").
     
  8. Rower_CPU Moderator emeritus

    Rower_CPU

    Joined:
    Oct 5, 2001
    Location:
    San Diego, CA
    #8
    I'll go try and let you know...I only tried ls to see where I was...
     
  9. Rower_CPU Moderator emeritus

    Rower_CPU

    Joined:
    Oct 5, 2001
    Location:
    San Diego, CA
    #9
    I'm able to navigate through directories using cd with no problem...
    Only weird thing is that everything seemed to be read-only...I wasn't able to do mkdir or even pico to create a file...anyone else know more about console?
     
  10. Falleron thread starter macrumors 68000

    Falleron

    Joined:
    Nov 22, 2001
    Location:
    UK
    #10
    I have now managed to get to the root + be able to run programs. However, I have done this by creating a new user + gone in via the main OSX login screen.

    A question, if you start a program in unix (SETI) how can you carry on using the terminal? I want to run 2 instances of it? When I start SETI off, I cant carry on using the commands. Dont know if that makes any sense to you?
     
  11. Rower_CPU Moderator emeritus

    Rower_CPU

    Joined:
    Oct 5, 2001
    Location:
    San Diego, CA
    #11
    You should be able to open up a second shell (Cmd + N) and keep using it.
     
  12. Falleron thread starter macrumors 68000

    Falleron

    Joined:
    Nov 22, 2001
    Location:
    UK
    #12
    RE: Read Only (Message on my system to enable write etc) I have not tried it because I really dont know anything about unix

    Type:

    /sbin/fsck - y
    /sbin/mount -uw /
     
  13. firewire2001 macrumors 6502a

    Joined:
    Apr 2, 2002
    Location:
    Hong Kong
    #13
    apple s!

    hey, thx guys i never knew about the apple s key... i always have entered unix by going to the terminal and goin "sudo shutdown now" which usually runs the shell slower for sum reason... probably memory buildup? anyways...

    wow, thx again

    -firewire
     
  14. makks macrumors newbie

    Joined:
    Apr 3, 2002
    Location:
    Portland, OR
    #14
    In the unix world there's something called single user mode which is also referred to as runlevel one which is mainly used for system maintenence being that it has no networking or ability for any users besides root to login, in short that's what it sounds like the command+S combo drops you in. I usually get to a text login by booting normally then as username typing <console and it brings you to a console which you can login at.
    That's my take on the situation.
    Also to be able to work in the terminal with something like seti running, you can put a & after the command to put it in the background.
     

Share This Page