How do I change the owner of a directory in Unix?

Hoàng Minh An

New member
How do I change the owner of a directory in Unix?
Answer
chgrp — Change the group ownership of files or directories. chmod — Change the permissions of files or directories.
…
Specifying the new owner.

new-owner form

Description

user:group

The user and group to own the file, separated by a colon, with no spaces between.
 

Tìm kiếm

Back
Top