Find the answer to your Linux question:
Results 1 to 6 of 6
While trying to set up my vsftpd server, I changed the file permissions on my server. This included my /etc directory. Using chmod and chown I changed the owner and ...
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    150

    Changed permissions of /etc... Bad idea...

    While trying to set up my vsftpd server, I changed the file permissions on my server. This included my /etc directory. Using chmod and chown I changed the owner and permissions of my /etc directory. Now, I can't boot into the second runlevel of my server because I get the error '* INIT: cannot execute "/etc/init.d/rc"'. In the "recovery mode" the drive is mounted as read-only upon errors, so it can't be saved that way. Knoppix doesn't seem to work either. I tried mounting the drive and changing the permissions, but it didn't seem to have any effect. I remember being able to use the "linux 1" command at boot-up with lilo on an old red hat desktop computer, but I can't figure out how to do this in grub. Is there any way to save my computer without reinstalling?

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Posts
    68
    lol, doing that is like throwing linux out the window.

    Because /ect is where all the config files are kept. Its like somehow uninstalling the control center on a comp, except worse.

    There might be some über tech yway to save yourself, but I think not.

  3. #3
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    150
    You mean it's not as easy to fix as just mounting the drive and changing the permissions again? How are the permissions stored? What's keeping me from changing the permissions from singles (my "linux 1") mode?

  4. #4
    Just Joined!
    Join Date
    Nov 2006
    Posts
    68
    well, to my knowledge, you can't write anything to the files in /ect unless your root in linux.

    So maybe if you login as root through a live-cd and then mount the partition and fix stuff up.

    Try SystemRescueCD (at distrowatch). Its meant for stuff like this.

  5. #5
    Just Joined!
    Join Date
    Jan 2007
    Posts
    6
    When you tried to change the permissions in Knoppix did you use the shell?

    I would try using the Knoppix shell as the superuser. I had the same problem a little while ago, where I was mindlessly editing my /etc/fstab and screwed it up so that the system couldn't load. It was the same problem - I could edit the fstab in Knoppix, but it wouldn't save. I ended up using the terminal, su'ing (i don't think there's a password for root in Knoppix) and then using vi to fix my fstab. But you might be able to su and then chown and chmod to reset your permissions.

    Let me know if any of that helps.

  6. #6
    Linux Newbie burntfuse's Avatar
    Join Date
    Nov 2006
    Location
    Laurel, MD
    Posts
    158
    Are you sure the execute bit is set for all the scripts in /etc that have to be executable, like the stuff in /etc/init.d?
    I have sold my soul to the penguin

Posting Permissions

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