1

I'm following this guide: link on how to use bindfs. I have a question however. The guide only mentions broadsweep permissions for all files, however if I want seperate permissions (644 for files, and 755 for folders), how would I go by doing this with bindfs?

Horizon
  • 111
  • 2

2 Answers2

2

To make the standard permissions of 0755 for directories and 0644 for files replace the permissions part for the script in /etc/fstab from:

create-with-perms=0770

to:

create-with-perms=god=rx:ud=rwx:gof=r:uf=rw

Isaac Pak
  • 121
  • 5
  • @Issac Pak - Its been a few years but your answer is the only one where i could see the issue of file / directory permissions being addressed. Could you kindly elaborate on your answer better ( each flag ) and how its used in /etc/fstab in perms syntax ( perms=0770 ). If you use perms syntax, do we need create-with-perms ? – MarcoZen Jul 06 '21 at 19:22
0

Try adding create-with-perms=0644:a+X to the fstab entry.

sebix
  • 4,313
  • 2
  • 29
  • 47