When I was studying the manual page for command pmount I read the following:
pmount ("policy mount") is a wrapper around the standard mount program which permits normal users to mount removable devices.
And when I used the following command
pmount /dev/sdc1
pmount /dev/sdc1 (without sudo) as a normal user, it created a folder named sdc1 in /media/media/sdc1 folder, while the permissions for the system's /media/media folder are
drwxr-xr-x
drwxr-xr-x and the user who owns this folderit is owned by rootroot. This means that a normal user (currently, me) cannot create files and folders in /media/media folder.
The question is: doesn't
Doesn't this contradict the rules of permissions and ownership in linuxLinux?
Another question is that while mountmount requires superuser permissions, and pmountpmount uses mountmount internally, how is it possible to use pmountpmount without sudosudo?