In blog

If you want to change ownership of files and folder follow the following codes 1. List current folder and users/groups assigned to it

ls -l

  2a. Use chown comment to change ownership

chown /srv/foldername/

  2b. If you want to change the ownership all files and folder add -R comment to it

chown -R /srv/foldername/

  2c. If you are unable to change the ownership you can use sudo command (sudo is for advance users, please check with your system admin before using this comment)

sudo chown -R /srv/foldername/
Recommended Posts