Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I had copied the /etc folder into /home/ocadmin folder.I did some changes into /etc folder.for restortion purpose i have moved the modified etc folder on /home/ocadmin/etc1 folder then i ...
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Location
    nanded
    Posts
    1

    /etc folder

    Hi,
    I had copied the /etc folder into /home/ocadmin folder.I did some changes into /etc folder.for restortion purpose i have moved the modified etc folder on /home/ocadmin/etc1 folder then i moved original /etc folder.ie mv /home/ocadmin/etc /etc

    i have restarted the system but i am not able to login onto the system.
    when i try to login it says login id invalid. plz let me know how can i login onto system?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Hi and welcome to the forum.

    What changes did you make? They could be the reason why you can't login.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by balnpatil View Post
    Hi,
    I had copied the /etc folder into /home/ocadmin folder.I did some changes into /etc folder.for restortion purpose i have moved the modified etc folder on /home/ocadmin/etc1 folder then i moved original /etc folder.ie mv /home/ocadmin/etc /etc

    i have restarted the system but i am not able to login onto the system.
    when i try to login it says login id invalid. plz let me know how can i login onto system?
    Doh! It hurts when you do that! You are going to need to boot a liveCD or rescueCD to fix this because /etc contains most of your system configuration information, user/group ids, passwords, scripts, file system mounting information, etc. Most has to be owned by root to be valid, and some have to be read-only. DO NOT MESS WITH /etc UNLESS YOU REALLY KNOW WHAT YOU ARE DOING! Backing it up is one thing, modifying its contents is another altogether.

    So, get a live/rescue CD, boot it up, and let us know when you are at that point - we might be able to get you sorted out PROVIDED you still have an unaltered backup copy somewhere on your system... If not, then you might have to reinstall your system from scratch.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    Do you have any important services running on the system like web or db server etc or is it a desktop machine ?

    My suggestion would be,as rubberman said take a back before editting /etc files.

    If you have another partition (say sda2) install your distro into new partition and
    login into newly installed linux then copies it's etc files into your older linux distro.
    now reboot and login to older linux and see whether it works.

    Again , take a backup of /etc/ directory before trying above method.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

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