Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:chown [2011/05/07 04:42] – created Guywiki:chown [2011/05/08 00:19] (current) – [The Recursive Option] Guy
Line 39: Line 39:
 ==== The Recursive Option ==== ==== The Recursive Option ====
  
-The recursive option enables you to change the owner of a directory, and all files and directories within that directory, with one command. To do this use "-R."+The recursive option enables you to change the owner and group of a directory, and all files and directories within that directory, with one command. To do this use "-R."
  
 For example, let's say you copied the directory myfiles to /home/tc, and it contains other files and directories, belonging to root:root. For example, let's say you copied the directory myfiles to /home/tc, and it contains other files and directories, belonging to root:root.
Line 48: Line 48:
 cd /home/tc cd /home/tc
 chown -R tc:staff myfiles</code> chown -R tc:staff myfiles</code>
 +
 +==== Save Files in Another Linux Partition ====
 +
 +If you create a directory in another Linux partition to save files in, you may need to create it as root. It will then be owned by root. To save files in it, you then need to be root.
 +
 +If you change the owner and group of the directory to tc:staff, you can save files in it as tc.
  
Print/export
QR Code
QR Code wiki:chown (generated for current page)