| Subcribe via RSS

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

February 7th, 2008 | 1 Comment | 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: , , ,