I'm mounting a filesystem as root and I don't understand why it is not owned by root but by an unprivileged user.
Here's fstab:
cat /etc/fstab
[...]
/dev/sdb /mnt/projects ext4 defaults 0 2
And here's what happens when mounting:
ls -al /mnt/projects/
total 8
drwxr-xr-x 2 root root 4096 mai 25 17:55 .
drwxr-xr-x 3 root root 4096 mai 25 17:55 ..
mount /dev/sdb
ls -al /mnt/projects/
total 24
drwx------ 3 jerome jerome 4096 mai 25 17:52 .
drwxr-xr-x 3 root root 4096 mai 25 17:55 ..
drwx------ 2 root root 16384 mai 25 17:52 lost+found
I'm not using sudo. I switch to root user with the su command.
The user that gains ownership is my normal user, the first declared when installing the system (uid: 1000).
The mount point is owned by root. I don't think that matters anyway.
My normal user doesn't have the permissions to mount the filesystem here himself.