简体   繁体   中英

vagrant puppet unable to chmod to make executable

I have a vagrant 1.6.3 debian 7.5 with a TYPO3 6.2.9 installation and I'm trying to make a php file executable chmod a+x typo3/cli_dispatch.phpsh but it's not working - not even as root. When I log out, however, I see that the file has changed permissions outside in my host machine.

I tried adding file {'/home/vagrant/docs/typo3/cli_dispatch.phpsh': mode => 0777} to the puppet manifest, but nothing seems to happen.

Can somebody perhaps shed some light on how to make files executable inside the vagrant box?

reson could be the folder you are working with is protected ,

you can try

chattr -i /home/vagrant/docs/typo3/cli_dispatch.phpsh

and try to change permissions again

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