Results 1 to 11 of 11
  1. #1
    Error in Terminal (Can't log in as super-user anymore)
    Hiya,

    I have an interesting error on my Intel Macbook (running leopard). I was trying to remotely access a CVS repository and in the process of doing so I changed my default shell from sh to tcsh (I think I was in super-user mode when i did this).

    Anyway, when I try to go su now, I get the following error:

    Code:
    su: tcsh: No such file or directory
    The command I used before was
    Code:
    chsh -s tcsh.

  2. #2


    Member Since
    Sep 18, 2007
    Location
    Guam
    Posts
    1,004
    Specs:
    Gateway2000 P5-60. 66Mhz and 128 MB RAM.
    have you tried sudo??

    If you still need super user try this:
    http://forums.macrumors.com/showthread.php?t=377802

  3. #3
    typing in sudo -i automatically makes me root, but just typing in su, signals me for my password, and once I correctly type it in, I get the error that I mentioned in my first post.

  4. #4
    I restarted my computer and now I'm getting this error...
    Code:
    "The administrator has set your shell to an illegal value."
    So, do you think if I bring back terminal.app from my time machine backup will result in a quickfix?

  5. #5

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    The problem is not the terminal application. You have altered your user configuration. I am not using leopard, so I don't know if the default shell is bash of not.

    You can try

    sudo chsh -s "shell you want" "user name"

    Whereas "shell name" is the shell you want to use and "user name" is the name of the user account you are making this change to. Hopefully this will fix things.

    You can also look at the man page for chsh.

    man chsh
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  6. #6
    so if I login as root and do the above-mentioned command, that should work?

  7. #7
    ok that didn't work. I tried both sh and bash as my command.
    (thanks for the help though)
    bah, what now ?

  8. #8
    I'm now able to use terminal again, but I still can't login as a super user. I still get the same error. For the shell I want, I kept forgetting to write the full path...I was using sh instead of /bin/sh

    I restarted terminal and tried going su again, and I still get the directory not found error.

  9. #9

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    suing by itself will not work unless you enabled the root account. Which is disable by default. What is it that are trying to do, that need constant root access?
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  10. #10
    I don't need it very often, but I do need it every now and then. I'm just unnerved that I can't su the way i used to anymore.

    Code:
    Last login: Wed Jun  4 23:12:11 on ttys000
    Lovemaker:~ Arthur$ su
    Password:
    su: tcsh: No such file or directory
    Lovemaker:~ Arthur$
    ^---This is what happens when I try to su
    Yes my computer is named Lovemaker. :p

  11. #11
    ok I fixed it!

    So what I did was chsh my account and the root account to the same shell, sh, instead of having one on tcsh and the other one on sh.

    Thanks for your help!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Terminal auto log help
    By guynir in forum OS X - Operating System
    Replies: 0
    Last Post: 05-31-2010, 10:45 AM
  2. Terminal files don't seem to be associated properly anymore
    By mishapuppy in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 04-26-2009, 01:59 AM
  3. Root User-Super user
    By ethan96 in forum OS X - Operating System
    Replies: 3
    Last Post: 03-31-2009, 11:39 AM
  4. Can't log in, anymore
    By Dadoo in forum OS X - Operating System
    Replies: 0
    Last Post: 04-20-2008, 04:48 AM
  5. Using the super user account in Terminal by default
    By macaroony in forum Switcher Hangout
    Replies: 3
    Last Post: 06-15-2007, 04:00 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
  •