ncmprhnsbl, indeed
/sbin/udev-fstab-update applies different options:
Code: Select all
[ $MOPT ] || MOPT="users,noatime,nodiratime,suid,dev,exec,async"
[ $NMOPT ] || NMOPT="noatime,nodiratime,group,nodev,exec,async"
resulting in:
Code: Select all
root@porteus:~# cat /etc/fstab
# Do not edit this file as fstab is recreated automatically during every boot.
# Please use /etc/rc.d/rc.local or sysvinit scripts if you want to mount/unmount
# drive, filesystem or network share.
# System mounts:
aufs / aufs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devtmpfs /dev devtmpfs defaults 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
# Device partitions:
# Hotplugged devices:
/dev/sda3 /mnt/sda3 ntfs-3g noatime,nodiratime,group,nodev,exec,async,comment=x-gvfs-show 0 0
/dev/sda1 /mnt/sda1 vfat users,noatime,nodiratime,suid,dev,exec,async,comment=x-gvfs-show,umask=0,check=s,utf8 0 0
/dev/sda4 /mnt/sda4 ntfs-3g noatime,nodiratime,group,nodev,exec,async,comment=x-gvfs-show 0 0
/dev/sdb1 /mnt/sdb1 vfat users,noatime,nodiratime,suid,dev,exec,async,comment=x-gvfs-show,umask=0,check=s,utf8 0 0
/dev/sdb3 /mnt/sdb3 ntfs-3g noatime,nodiratime,group,nodev,exec,async,comment=x-gvfs-show 0 0
/dev/sdb2 /mnt/sdb2 ext4 users,noatime,nodiratime,suid,dev,exec,async,comment=x-gvfs-show 0 0
/dev/sdc2 /mnt/sdc2 ext4 users,noatime,nodiratime,suid,dev,exec,async,comment=x-gvfs-show 0 0
/dev/sdc1 /mnt/sdc1 ntfs-3g noatime,nodiratime,group,nodev,exec,async,comment=x-gvfs-show 0 0
partitions sda1, sda3, sda4, oddly sdb1, and sdb3 are mounted under ownership of guest:root.
I don't ever use
guest, and yet it appears to be a rather special, privileged account on my system as whole (windows) partitions are owned by it. I wonder why, and what do I change to make mounted file systems owned by root:root (except /home/guest) -- when I log in as root at least?
But there is more.
All that was about mounting at boot. Now, if I hotplug an NTFS USB I get and e.g.
/mnt/sdc1 above, it's mounted as root:root, by SpaceFM I guess, so it picked up the correct current user (root)?
Is it possible that mounting command during boot for windows partitions is executed on behalf of the
guest user?! And I suspect we need to look into initrd (linuxrc and/or finit) and the fstab above is irrelevant (too late) during boot?