| Subcribe via RSS

linux: change ownership and permission for file or directory via ssh

February 7th, 2008 Posted in linux, server by dreamluverz

sources: http://webtools.live2support.com/linux/chown.php, http://www.tuxfiles.org/linuxhelp/fileowner.html

I’ve tried this 2 lines in order.

chown -R -v [username]  [directory/file]



chmod -R -v [permission]  [username]  [directory/file]



-R = recursively, including sub directories
-v = verbose, you will see it in action

Tags: , , ,

One Response to “linux: change ownership and permission for file or directory via ssh”

  1. dreamluverz Says:

    At first try it didn’t work. maybe I juz did something not right. So I tried it again coz I found the same syntax on most forums and It works :)


Leave a Reply