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

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

This entry was posted in linux, server and tagged , , , , , , . Bookmark the permalink.

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

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>