Search This Blog

Wednesday, March 20

Change ownership of directory and all contents to a new user from root


Use the chown command to change file owner and group information.

adduser haank
passwd haank # set the password
chown -R haank /var/www/html/

-R is used for Recursive.

No comments:

Post a Comment