How to change file’s owner and group in Linux
September 23rd, 2009 | Author: Sunny
%chown username filename
This will set the filename’s owner to username
%chown username:groupname filename
This will set the filename’s owner to username, group to groupname
with option -R, you can change owner and group of the directory recursively to its sub-directories and content.
%chown -R username:groupname directoryname
Reset Magento Directory Permission
September 16th, 2009 | Author: Sunny
When install new extension to Magento using Magento Connect, it will ask you to set the directory permission to writable to server user. In order to do it, at command line, type in:
find . -type d -exec chmod 777 {} \;
Once finish the installation, you should reset the permission:
find . -type d -exec chmod 755 {} \;
I assume you know Unix “chmod” to change permission. The number 777, each digit is the permission for Owner, Group, and World. 7 means Writable, Readable, and Executable. You should think it in binary: 7 is “111″ in binary mode, and it means all permission is on. 1 is on, 0 is off. so, 755 means that All permission for owner, but only readable and executable to group and world because 5 is “101″.