Change the file owner or group in Linux

January 8, 2010 โ€” Change the owner of a file or folder:

chown newowner filename

Change the group of a file or folder:

chgrp newgroup filenameorfoldername

View source