Re: automatically mounted filesysystems in /media



Rob schrieb:

The vfat filesystem (/dev/sdb1) mounts with permissions set to 755 and

That is specified inside the udev scripts.


the ext3 filesystem (/dev/sdb2) mounts with 777.

That is specified by the / inode of the mounted filesystem. You may change
it with chmod.


I tried performing
"chmod 777 disk" as root to modify the vfat filesystems but it doesn't
change.

VFAT doesn't have UN*X like permission bits. Instead, it has a "readonly",
a "system", "hidden" and "archive" bit per file, but these doesn't map well
to UN*X permissions, so they are usually not touched by Linux.



It also seems that files I create within these filesystems have
different permissions; my umask is 0022. Files I create in the vfat
filesystem have permissions 755

VFAT permissions are not memorized per file. VFAT isn't capable to do such a
thing. Instead, all files will get the permissions specified by mount --
here specifically by udev's mount script for that kind of filesystem.


and files I create in the ext3
filesystem have 644. Any thoughts on why this is?

With ext3, you get the usual UN*X permissions behaviour. Normal files have
no exec permission by default, and your umask is 022, so you get 644.

Kind regards

Jan
.



Relevant Pages

  • Re: [RFC] FUSE permission modell (Was: fuse review bits)
    ... > 2) Suid and device semantics should be disabled within the mount ... I can see plenty of uses where I want a filesystem generated by ... permissions model - which will break some programs? ... For most virtual filesystems, the "remote" information does not map to ...
    (Linux-Kernel)
  • Re: mounting vfat and umask woes
    ... > I can mount the thing successfully and read and write from/to it. ... vfat doesn't support Unix permission bits. ... Linux vfs layer fakes up permission bits for you. ... you can modify the default permissions (take ...
    (comp.unix.admin)
  • Re: How to mount ext3 so the files belong to a specific user?
    ... Are you aware that you only need to tweak the permissions to your liking ... Just create an ext2/3 filesystem, mount it as root and then change ...
    (Debian-User)
  • Re: root cant change permissions, owner
    ... Wikipedia, at least, that's not VFAT. ... but permissions remain the same. ... You already know that this is a Mircosoft filesystem. ... FAT32 - or vfat - does not use ownership or permissions, ...
    (comp.os.linux.misc)
  • Re: root cant change permissions, owner
    ... Wikipedia, at least, that's not VFAT. ... but permissions remain the same. ... You already know that this is a Mircosoft filesystem. ... FAT32 - or vfat - does not use ownership or permissions, ...
    (comp.os.linux.misc)