Archive for December, 2009

Changing files and folders so they are accessable by user and apache as well

Follow the commands below to change files and folders so they are accessible to users and the apache group as well by adding the user to the apache group and assigning full read, write, execute privileges to user and apache group.
cd /var/www
find . -type d | xargs chmod 775
find . -type f | xargs chmod [...]

More »

How to change owner of files or directories recursively in Linux?

To change owner of files or directories recursively in Linux use the following command: (MAKE SURE YU ARE IN THE DIRECTORY YOU WANT TO CHANGE THE FILES/FOLDERS WITHIN)
chown -R user/group — (substitute user/group with the user name and group name.
For example:
chown -R paul/administrator — (paul is the name of the user [...]

More »

How to get/find out the owner of a file or directory in Linux

You can use ls -l command (list information about the FILEs) to find our the file / directory owner and group names.
More information: http://www.cyberciti.biz/faq/unix-linux-find-file-owner-name/

More »