Find the answer to your Linux question:
Results 1 to 7 of 7
I typed in my console: chsh [I was a root] and then I logged out. I logged back in and when I typed su RET Password it said: "Not a ...
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Location
    BG
    Posts
    6

    Solved: I messed up something

    I typed in my console: chsh [I was a root] and then I logged out. I logged back in and when I typed su RET Password it said: "Not a Shell" . I've tried so many things - but the file /etc/passwd is messed up and the root is: ksh [it must be /bin/bash[
    I've tried also several programs to read the file system under windows - but they have no write privileges. Can you tell me how can I solve my problem - I think I must change the file permissions.

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    The Hot Humid South
    Posts
    602
    There's a file somewhere that specifies what the user's shell is. I think the file is /etc/shells. You'll need to be root to change it, so that might be a problem for you, but if you have sudo privilages use that.

  3. #3
    Just Joined!
    Join Date
    Sep 2005
    Location
    BG
    Posts
    6
    I know the file: it is called: /etc/passwd
    I don't have such privileges!

  4. #4
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Turn Around
    Posts
    202
    nope... i believe its actually /home/username/.profile or /home/username/.bashrc

    could be wrong tho...

  5. #5
    Just Joined!
    Join Date
    Sep 2005
    Location
    BG
    Posts
    6
    Whatever it is - I must have root privileges to change this file...but I don't have because it says: Not A Shell and this is the problem!

  6. #6
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    The Hot Humid South
    Posts
    602
    I never said you had to do it in your current distro. Just boot into any old rescue distro (if you have a floppy drive, I recommend tomsrtbt), mount the partition where the file is to be found, and change it manually.

  7. #7
    Just Joined!
    Join Date
    Sep 2005
    Location
    BG
    Posts
    6
    OK 10x a lot - it worked - I've changed the attributes with: chmod and then I changed the text!

Posting Permissions

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