what do the parameters uid and gid with /etc/fstab do?

8,024

Mount options for Microsoft (and similar) file systems to set the owner and group

From man mount,

Mount options for fat
       (Note:  fat  is  not  a  separate  filesystem,  but a common part of the
       msdos, umsdos and vfat filesystems.)

       ...

       uid=value and gid=value
              Set the owner and group of all  files.   (Default:  the  uid  and
              gid  of  the  current process.)

There is a similar text for ntfs. See the following link for examples, where uid is used,

How do I use 'chmod' on an NTFS (or FAT32) partition?

Share:
8,024

Related videos on Youtube

Asqiir
Author by

Asqiir

Updated on September 18, 2022

Comments

  • Asqiir
    Asqiir over 1 year

    I'm mounting directories. I wrote the needed lines to /etc/fstab.I'm using cifs protocoll.

    I wonder what the parameters uid and gid do, since they're similar for any user. (So this can't be any user id.)