I like to use a fat32 partition as a shared partition, and want to be able to read and write in that partition. Thus, I modify my /etc/fstab to include the following command, i.e.
/dev/sda2 /media/sda2 vfat defaults,utf8,umask=077,gid=1000,uid=1000 0 0
the key is to specify
1. umask=077; it means only the user has the right to read-write-execute.
2. uid=1000,gid=1000 are the user id and the group id of the owner.
well, it is not perfect but it suits my need.
/dev/sda2 /media/sda2 vfat defaults,utf8,umask=077,gid=1000,uid=1000 0 0
the key is to specify
1. umask=077; it means only the user has the right to read-write-execute.
2. uid=1000,gid=1000 are the user id and the group id of the owner.
well, it is not perfect but it suits my need.
Comments