Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, due to an spelling-error in a shellscript i tried a shell-variable was not found and the entire filesystem got rewritten with "chmod 600". Now there is the little problem ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    2

    entire filesystem rw


    Hi,
    due to an spelling-error in a shellscript i tried a shell-variable was not found and the entire filesystem got rewritten with "chmod 600".
    Now there is the little problem with all scripts and programs being non-executable. Is there anything that can be done at this point?
    When doing a shell command (except "cd") there is always - not unexpected - a "Permission denied" error.
    Will a restart do any good? I get the feeling, there will be no start after a shutdown ...
    Would be nice if anyone had some particular knowledge on this field.
    thx,
    oh_no

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    hi oh_no !!!

    i think reboot would create problems... you changed pernission of entire file system... it means you executed that script as root... this should not be done........
    root is used for maintainance only...

    well !! i think you need LiveCd now...
    boot through Live Cd and change permission.......

    <=== { casper } ===>
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Aug 2006
    Posts
    2
    Hi devil_caspar,
    thx for answering.
    Given the fact that the system is on a (v)Server that might prove difficult. But I didn't think of that and just asked the provider, wether or not it's doable.
    The script was running as root since it was creating a system-wide backup. Irony at its best ...
    greetings,
    oh_no

  4. $spacer_open
    $spacer_close

Posting Permissions

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