2

I ran

chown -R me:me /opt/web/ftp-mounts/

which affected files on sshfs ftp mounts. The remote server hosts IIS based websites. I might have messed up the file permissions on the remote host.

Now when I request static files on my production website, I get IIS error

HTTP Error 404.9 - Not Found
This error occurs when the requested file is marked as hidden on the file system.

How do I revert these? I just messed up my production server!

loa_in_
  • 119
  • 6

1 Answers1

0
chmod -R 777

solved the issue.

loa_in_
  • 119
  • 6
  • while manual pages for `chown` never mention messing with access bits, apparently windows servers have their own policy, and do mess with access bits on `chown`. That's fairly logical, when one considers windows security. – loa_in_ Sep 14 '15 at 22:59
  • As further follow up, because of this, my boss banned use of *nix company-wide. I'm now back to doing it, but covertly :D – loa_in_ Sep 14 '15 at 23:01
  • now instead of keeping these same mounts in /opt/ftp-mounts/* i keep them in /keep_safe/* :) – loa_in_ Sep 14 '15 at 23:03