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

Android App Version Update using the following cordova cli commands

75 inspirational quotes that will change your life

Retrieval Image From DataBase and Display on WebPage by Using Servlets.