On Wed, 26 Apr 2023 21:56:23 -0300, Jorge P. de Morais Neto wrote:

> > Do you have a separate filesystem for /home? If so, the simplest
> > option is to set umask in its mount options in fstab. This will
> > affect all users, except root, and it won't affect files you write
> > outside of $HOME.  
> 
> That is not documented in the mount manpage as a filesystem-independet
> option; it only shows for specific filesystems, none of which I use.

That's because it is not filesystem-independent.

> Anyway, I use Btrfs and I have a separate subvolume for /home.  I have
> tried adding umask=077 (later umask=0077) as fstab option and invoking #
> 
>     # mount -o remount /home
> 
> but in both cases it errored out:

Because btrfs does not have that option.

>     mount: /home: mount point not mounted or bad option.
>        dmesg(1) may have more information after failed mount system
> call.
> 
> dmesg says:
> 
>     BTRFS error (device nvme0n1p7: state M): unrecognized mount option
> 'umask=077'

As it says.

I think ACLs may be a better fit for your needs.


-- 
Neil Bothwick

Synonym: a word you use when you can't spell the other one.

Attachment: pgpp2N_pKLDv2.pgp
Description: OpenPGP digital signature

Reply via email to