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.

Comments

Popular posts from this blog

Why Mark Zuckerberg’s Choose 4

Error message when I run sudo: unable to resolve host (none)

Convert MBR to GPT