![]() I just want an easy to use way to CRUD my files from anywhere I am on my system.Įdit: It would also be ok, to set everything to www-data:ww-data and add my shell user to the www-data-group if the permissions are applied like explained above. Nevertheless, I also have to figure out how to set default permissions for new objects. If I make a new directory from the windows explorer, the ownership is root:root. If I make a new directory/ file from the shell or within VSCode, my user and group are used. The first command, is for new items (hence the d), the second command, is for old/existing items under the. d is default, which means for all future items created under that directory, have these rules apply by default. every new element should follow these requirements. R is recursive, which means everything under that directory will have the rule applied to it.Each file should have permission 0664 and each directory 0775.Every element should have the group www-dataso that the webserver user have access.Every element within /var/www should be owned by my shell user, regardless if file or dir.What I want to achieve is, to have a consistent set of permissions and ownerships within my /var/www (and all below). ![]() This is just for my local development process and this requirement will stay there. ![]() I know that in a server environment this would be pretty bad and wouldn't be done. ![]() Unfortunately, the file permission and ownership is kind of a problem for me right now. I'm currently in the process of switching from an Ubuntu 18.04 VirtualBox to the WSL.Įverything is up and running to have a complete web dev environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |