Find the answer to your Linux question:
Results 1 to 5 of 5
whenever i try loging on i type in root and then the password and i get this: Linux 2.4.26 No mail. -bash: id: command not found -bash: fortune: command not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    98

    Can't logon


    whenever i try loging on i type in root and then the password and i get this:

    Linux 2.4.26
    No mail.
    -bash: id: command not found

    -bash: fortune: command not found


    then it just goes back to the login screen.

  2. #2
    Just Joined!
    Join Date
    Mar 2005
    Location
    Birmingham, UK
    Posts
    1

    oh dear

    it appears bash is broken or the disk has corrupted, you'll have to reinstall bash, boot the system off a recovery disk and manually edit your entry in the passwd file for a different shell '/bin/sh' then save and reboot, once you can login try re-installing bash and fsck your drive to make sure its not corrupted.

  3. #3
    Just Joined!
    Join Date
    Apr 2005
    Posts
    6
    i have the same problem so im going to reinstall slack

  4. #4
    Just Joined!
    Join Date
    Mar 2005
    Location
    Warsaw, Poland
    Posts
    1
    I have similar problem. I can logon as root but not as a user. I added an account for my self using adduser command and when I try to login I get:

    Cannot execute /bin/bash: Permission denied

    So I did:
    Code:
    # chmod 755 /bin/*
    # ls -l -d /bin
    drwxr-xr-x  2 root bin 4096 2005-04-14 16:59 /bin/
    # ls -l /bin/bash
    -rwxr-xr-x  1 root bin 666452 2004-11-03 23:30 /bin/bash*
    And still I can't logon .
    Can someone help me ??

  5. #5
    Just Joined!
    Join Date
    May 2005
    Location
    Near Charlotte, NC
    Posts
    13
    Quote Originally Posted by iamsam
    whenever i try loging on i type in root and then the password and i get this:

    Linux 2.4.26
    No mail.
    -bash: id: command not found

    -bash: fortune: command not found


    then it just goes back to the login screen.
    I just recovered from this problem it was because I had changed permissions of /usr/lib & /usr/bin
    I restored the permissions of the folders & then reinstalled bash
    I used usermod -s /bin/bash "username" to change the shell to csh to see if I could login with the same user / pass.

    Hope this helps,


    Snide.

Posting Permissions

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