Project

General

Profile

Idea #7831

Updated by Brett Smith over 8 years ago

h2. Background 

 arv-mount uses mode 0777 for files and directories. This is bad when combined with @--allow-other@. 

 h2. Fix 

 arv-mount should accept a switch called @--mode@ and @--permissions@ as an octal number, with default 0755. 
 * When the mount is read-only, strip out any write bits from the specified mode. 
 * Files should have this specified mode. 
 * Directories should have this specified mode, but with "x" added everywhere "r" exists. 

 For example, with --mode=0640, files will have mode 0640 and directories will have mode 0750.    If the mount is read-only, they'll be 0440 and 0550, respectively. 

 h2. Optional/future work 

 Accept a --dir-mode argument, for cases where "same as --mode, but adding x wherever r exists" (which would still be the default) is not satisfactory. 

Back