What is the normal chmod?

Here’s a summary that I have gathered: Usage: chmod <number> <filename> chmod all files to 644 chmod all .htaccess files to 644 chmod all robots.txt files to 644 chmod all directories to 711 chmod all directories with directory listing (.htaccess Options +Indexes) to 755 chmod all directories that users can upload files to, to 755 … Read more

preserving file permissions for samba shares when file is edited

Could finally figure out why permission was changing. The confusion arose from the map archive = yes setting being the default value in Samba. After setting map archive = no, the owner execute bit started behaving like I expected it to behave. Found the answer by reading the documentation over here: http://www.samba.org/samba/docs/using_samba/ch08.html in the File … Read more

Cannot change permissions of folders within vagrant home folder

The format for shared folders changes across different versions of Vagrant. See Fabio’s answer https://serverfault.com/questions/398414/vagrant-set-default-share-permissions Vagrant version 1.3.1 and earlier config.vm.share_folder “v-data”, “/export”, “/export”, :owner => ‘vagrant’, :group => ‘httpd’, :extra => ‘dmode=775,fmode=775’ Vagrant version 1.3.1, 1.3.2 In Vagrant 1.3.1 and later, the extra option has been replaced with mount_options that expects an array. config.vm.share_folder … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)