Hi Alvaro,

Thanks loads for that tip.

However I would like to point out that the folder "*restricted"* lies in
the same path where I have previously set the "dmode=775,fmode=664".

hmmm so I want to set the permissions "dmode=775, fmode=664" down the
folders  /vagrant/www/myproject/ and then set
the permissions  "dmode=740,fmode=640" in the folder *restricted*  which
lies here /vagrant/www/myproject/*restricted/*.

So which vagrant commands would let me selectively target only the "*restriced"
*folder in this path and not change the permissions for the entire path ?

Sorry if I misunderstood something in your previous reply. I am very new to
vagrant and I believe that changing permissions through vagrant changes
them all down the path.

Any help appreciated,
Thanks loads again for your time and help,
Ajoo.


On Thu, Feb 23, 2017 at 12:54 AM, Alvaro Miranda Aguilera <[email protected]
> wrote:

> Hello
>
> The easiest will be you leave ".", "/vagrant" as is
>
> and you create more synced_folder for each requirement you have.
>
> you can have 2 or 3, or as many as you need.
>
> Alvaro.
>
>
> On Wed, Feb 22, 2017 at 4:36 AM, Ap Seh <[email protected]> wrote:
>
>> Hi,
>>
>> I have set the folder permissions of my synced folder in the vagrant file
>> as
>>
>> config.vm.synced_folder ".", "/vagrant",
>> owner: "vagrant",
>> group: "www-data",
>> mount_options: ["dmode=775,fmode=664"]
>>
>> I want to selectively change the folder permissions of the folder
>> *restricted* in this path /vagrant/www/myproject/*restricted/. *Say I
>> wish to change that too 750, and the files inside it to 640, how can I
>> accomplish this?
>>
>> Thanks loads
>>
>> --
>> This mailing list is governed under the HashiCorp Community Guidelines -
>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>> violation of those guidelines may result in your removal from this mailing
>> list.
>>
>> GitHub Issues: https://github.com/mitchellh/vagrant/issues
>> IRC: #vagrant on Freenode
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Vagrant" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/vagrant-up/413b5878-b115-476a-9050-65d24e0bb20d%40googlegroups.com
>> <https://groups.google.com/d/msgid/vagrant-up/413b5878-b115-476a-9050-65d24e0bb20d%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Alvaro
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Vagrant" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/vagrant-up/R2gPXfXxnGQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/vagrant-up/CAHqq0exk6nz8m28H_BS5CgnQBD6Gp5iRwZKZoQYQ%
> 3D13a5M%3DVRw%40mail.gmail.com
> <https://groups.google.com/d/msgid/vagrant-up/CAHqq0exk6nz8m28H_BS5CgnQBD6Gp5iRwZKZoQYQ%3D13a5M%3DVRw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CA%2BnFXPFp%3DfzuSTvd7AbsySAsPa-McXYoPBh2d0OWzTLf692ZTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to