×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Paul Allies Allies
Added: Jul 5, 2012 10:44 PM
Views: 21
Tags: no tags
  1. //Change the owner of the file
  2. $ sudo chown <username> <file>
  3.  
  4. //Change the owner of the folder
  5. $ sudo chown -R <username> <folder>
  6.  
  7. //Change group of file
  8. $ sudo chgrp <group> <file>
  9.  
  10. //Change group of folder
  11. $ sudo chgrp -R <group> <folder>