简体   繁体   中英

Is there an equivalent windows command for chmod?

I'm currently setting up a PHP app to run on my local machine (windows). The README describes the steps to run to set up the app on the production sever (linux).

I've come accross these steps:

mkdir var/cache/
chgrp apache -R var/cache/
chmod 770 -R var/cache/

and

cd public/
chgrp apache -R photos/
chmod 770 -R photos/

How would I go about performing these commands on a windows machine (from cmd or powershell)?

I'm using PHP/Apache via XAMPP.

Windows uses NTFS filesystem which doesn't have permissions applied in the same way as chmod (ext4) works. There are lots of features missing and features that just work differently.

I'm pretty sure that as long as you're using the same user on your PC, you don't have to be bothered by this. You can probably skip applying chmod commands.

However, i highly recommend you to check out Windows Subsystem for Linux 2 .

It is a way to run Linux inside your Windows PC without running a chunky virtual machine (it's very lightweight and fast ). Developing PHP with Linux filesystem and kernel is a way better experience. The technology is very mature by now and can even run Docker.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM