Questions tagged [chmod]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
1 answer
824 views

Is it safe to use 777 for my public html folder?

Running a Linode and I want to install Nextcloud, but it needs permissions to write to the directory (/var/www/html). Doing a chmod 777 will clear things up but I wonder if it's safe to use that open ...
user avatar
3 votes
2 answers
4k views

Can .htaccess be used to set file permissions?

Is it possible to define file type permissions through .htaccess? I have a site that uses .pl and .cgi scripts which require 0755 CHMOD. The shared server setting is apparently geared for WordPress ...
user avatar
  • 31
1 vote
2 answers
1k views

Question about my public_HTML folder permissions

I have a shared hosting account that uses cPanel and I think su_php. By default, the permissions for my public_HTML directory are set to 750, which allows my site and all folders/files inside ...
user avatar
  • 187
1 vote
3 answers
4k views

CSS files not updating on FTP transfer overwrite

I have a weird issue: I have made changes to a CSS document but when I upload it and overwrite the existing file nothing changes - the old file remains. I have tried this on several FTP clients to ...
user avatar
  • 1,329
5 votes
2 answers
24k views

Cannot change file permission via FTP: '500 - command not understood'

I have an old site that is in danger of being compromised as many of the directories and files have permissions set to 777. However, when I try to change them to 555 via FileZilla I get the error ...
user avatar
  • 1,329
5 votes
2 answers
113 views

What measures should I take after I find one of my scripts being vulnerable?

I maintain a few PHP-based websites for a small company on a LAMP server. The scripts include CMS such as Joomla or Wordpress, as well as SilverStripe and Drupal installations. A week ago, I found ...
user avatar
  • 165
0 votes
2 answers
1k views

After changing web host, I get a 'file does not exist' error

I run a WordPress blog, and have recently changed web hosts. When changing web hosts, I copied all files and exported/imported the database etc as explained by lots of tutorials found easily on ...
user avatar
2 votes
1 answer
3k views

Getting 403 Forbidden after changing webroot

I am running Ubuntu with Apache (LAMP stack). When I changed the webroot from /var/www to /media/data/www, I keep getting 403 Forbidden even after chmod-ing the directory + files to 777. What did I do ...
user avatar