Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: can't login

  1. #1
    Join Date
    Apr 2009
    Location
    Annapolis, MD
    Posts
    204

    Default can't login

    I created a profile.local on the root. I had tried to set a path variable. Obviously something went wrong with that. Now I cannot login. It just spins at boot up. Yes, I'm a total moron. Please tell me how I can fix this. I'm really pissed.

  2. #2
    Join Date
    Apr 2009
    Location
    Annapolis, MD
    Posts
    204

    Default Re: can't login

    Basically I need to find a way to delete this profile.local on root. It's not allowing me to log on. But because I can't log on, I can't delete the file. What an idiot.

  3. #3
    Join Date
    Apr 2009
    Location
    Annapolis, MD
    Posts
    204

    Default Re: can't login

    I have a SUSE 11.1 CD. I'm assuming that's how I could get in to delete this file?

  4. #4
    Join Date
    Aug 2008
    Location
    Mexico and Sweden
    Posts
    1,659

    Default Re: can't login

    Quote Originally Posted by imterpsfan2 View Post
    I have a SUSE 11.1 CD. I'm assuming that's how I could get in to delete this file?
    Most "live" CD's will allow you to login as root, mount the drive in question and delete the unwanted file. A handy tool you can download and burn from a friend's computer.

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,775

    Default Re: can't login

    Your install CD is good for this. Choose the maintenance or rescue or how it is call from the first menu. It will let you login as root without a password. Then do as ionmich says. mount the partition where /home is in, etc.

    But may be this is not needed. I suppose your system boots normaly, it only does not let you login. Use Ctrl-Alt-F1 to get to the logical console, login as root there and remove the culprit. After logout use Ctrl-Alt-F7 to get back to your graphical login screen.
    Henk van Velden

  6. #6
    Join Date
    Apr 2009
    Location
    Annapolis, MD
    Posts
    204

    Default Re: can't login

    I was able to login as root within the Rescue System. The culprit was /etc/profile.local but I don't see that anymore. Is that because it's only available to your local home? I am able to see profile, which never got changed. Wouldn't root have access to the entire file system? Why would I have to mount the home directory?

    Basically the system was logging in as the home user name without a login prompt. It seems to be failing at the login. When I try to login as root at the console, it seems to authenticate me and gives the message have fun. But then that's where it just spins.

    This is all traceable to the profile.local I created but I do not see this file anymore.

  7. #7
    Join Date
    Apr 2009
    Location
    Annapolis, MD
    Posts
    204

    Default Re: can't login

    I'm pretty sure I am going to have to reinstall Linux because when I go into etc/fstab I no longer see a mount for home. If I try mount /home/<username> it says there are no mounts in fstab by that name. I probably should go back to Windows so I can't do anymore harm

    Also, when I login to the Rescue System.
    cd home
    ls -l
    There's basically nothing in there.

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,775

    Default Re: can't login

    I am not sure that you followed all instructions given. This may be due to you not understanding them. When you are loged in in the rescue system you are NOT in your own system, but in a system that only exists inside the memory of your box. That means that you will find nothing of what you might have done to your own system. You first have to give the rescue system access to the partitions of your own system.

    This must be done by mounting one (or more) of these partitions. For doing this you must have two things:
    1) Know which partition to mount. It helps when you know which is your root partition (mounted on / ) in your own system. Must be something like /dev/sda2. In the rescue do a
    Code:
    fdisk -l
    this might give a clue.
    2) You need a mountpoint. Create one with
    Code:
    mkdir /temproot
    (almost any name will do, but this seems a good one to me).

    When this is clear you can mount with
    mount /dev/sda<what-it-is> /temproot
    Then you can go to the /etc of your system by doing
    Code:
    cd /temproot/etc
    in the rescue system. Now check and repair. Shut down the rescue system and see if it helped you.

    When in doubt about the above come back here before you destry something

    -----------------------

    I also suggested login on your own system on the console. Is the second paragraph of your last post pointing to that posibility? Then when it says "have fun" you can then look directly in /etc.

    You must see the difference between being in the rescue system afttr booting from the CD and being in your own system after booting it. They are COMPL:ETLY DIFFERENT.

    --------------------

    And you have already a new post. I acn not quite cope with your speed

    In the rescue system there will NOT be an entry for partitions of your own system. And there will probably NOT be a entry for /home/<username> in both of the systems.

    Please calm down and try to follow what I gave above.
    Henk van Velden

  9. #9
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,775

    Default Re: can't login

    Quote Originally Posted by imterpsfan2 View Post
    I'm pretty sure I am going to have to reinstall Linux because when I go into etc/fstab I no longer see a mount for home. If I try mount /home/<username> it says there are no mounts in fstab by that name. I probably should go back to Windows so I can't do anymore harm

    Also, when I login to the Rescue System.
    cd home
    ls -l
    There's basically nothing in there.
    Of course thee is nothing there, it is only a rescue system, not your own!!!!!!!!!!!!
    Henk van Velden

  10. #10
    Join Date
    Apr 2009
    Location
    Annapolis, MD
    Posts
    204

    Default Re: can't login

    I eventually discovered this fact

    So I followed the steps in my SUSE manual to mount the root partition, change root, mount, proc and sys, then all remaining partitions. I deleted profile.local, rebooted, and now I am good to go.

    Sorry for the drama and thanks for responding.

    Everything is back to normal and I learned a few things.

Page 1 of 2 12 LastLast

Posting Permissions

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