linux need to change root shell

Sharky Forums


Results 1 to 4 of 4

Thread: linux need to change root shell

  1. #1
    Expensive Sushi
    Join Date
    Dec 2001
    Posts
    46

    Question linux need to change root shell

    Ok,

    I just installed a new copy of linux. I ran chsh to change my shell to /bin/tcsh, only to find out that I didn't have tcsh installed. So now I cannot log in as root to install anything else. I do have a user account installed, but cannot change the passwd or any of files. Is there anything I can do to change it back.

    Tom

  2. #2
    Anime Lovin' Girl Mod sourdaisy's Avatar
    Join Date
    Oct 2000
    Location
    Albuquerque, NM (aka /dev/null)
    Posts
    1,940
    You can try booting into single user mode (or go into runlevel 1) and see if you can edit the files you need.

    If that doesn't work, you can try booting off one of the install cds (if you have that) and enter a "repair mode" to fix it.

    Its hard to say exactly because you haven't given a whole lot of information (ie the distro).
    "Programming graphics in X is like finding the square root of PI using Roman numerals."
    -Henry Spencer

  3. #3
    Expensive Sushi
    Join Date
    Dec 2001
    Posts
    46
    sorry about that. Running Debian 2.2 Potato as of now. Most of the packages are the latest however. I have the original debian cds.

    Tom

  4. #4
    Expensive Sushi
    Join Date
    Dec 2001
    Posts
    46
    got it working, thanks for thinking about it. I used the install disc and ran a shell, after some fiddiling around, I was able to edit /etc/passwd and change it that way. So its all cool now.

    Thanks again.

    Tom

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •