开发者

Fixing permissions after FTPing ASP.NET code to a Linux system

开发者 https://www.devze.com 2022-12-27 15:42 出处:网络
First off, I\'m running Mono to run ASP.NET on Linux, but that\'s not the question. It appears that, every time I clear out my application directory and upload, I have to go back in 开发者_JS百科and

First off, I'm running Mono to run ASP.NET on Linux, but that's not the question.

It appears that, every time I clear out my application directory and upload, I have to go back in 开发者_JS百科and fix the permissions. What I'm doing is

chmod -R -c 755 /var/www/*

...and there are two questions.

  1. What's the deal with having to do this every time I FTP? Feels flaky.
  2. Is there a better permissions set than 755? Do I want different permissions for the /bin directory? Or can I fix this all with one fell swoop of chown?


It could depend on your FTP server and configuration. I always used this and it worked:

chmod 777 /path/...
0

精彩评论

暂无评论...
验证码 换一张
取 消