Posts Tagged ‘group’

chown and chgrp

Posted: 08/23/2011 in Ubuntu Linux
Tags: , , , , ,

To change file ownership, use chown command. And to change the group where a file belong to, use chgrp command.

change file owner:

chown user file

change file owner and group:

chown user:group file

change only the group:

chgrp user file