Differences between CHMOD 755 vs 750 permissions set
0755 = User:rwx Group:r-x World:r-x 0750 = User:rwx Group:r-x World:— (i.e. World: no access) r = read w = write x = execute (traverse for directories)
0755 = User:rwx Group:r-x World:r-x 0750 = User:rwx Group:r-x World:— (i.e. World: no access) r = read w = write x = execute (traverse for directories)
svn uses propset to change file attributes: svn propset svn:executable ON sync.py
Make file executable: chmod +x file Find location of perl: which perl This should return something like /bin/perl sometimes /usr/local/bin Then in the first line of your script add: #!”path”/perl with path from above e.g. #!/bin/perl Then you can execute the file ./file There may be some issues with the PATH, so you may want … Read more
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
man 3 chmod contains the information you are looking for. chmod -R +r directory the -R option tells chmod to operate recursively.
use find: find . -name “*.sh” -exec chmod +x {} \;
Here’s one scenario: You have an unprotected directory that users can upload to. They upload two files: a shell script, and a php file that has a system() call in it to the shell script. they access the php script they just uploaded by visiting the url in their browser, causing the shell script to … Read more
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
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
Use chown to change ownership and chmod to change rights. use the -R option to apply the rights for all files inside of a directory too. Note that both these commands just work for directories too. The -R option makes them also change the permissions for all files and directories inside of the directory. For … Read more