著者: Adam Borowski 日付: To: dng 題目: Re: [DNG] Preferred automounter behavior?
On Fri, Dec 25, 2015 at 04:32:58PM -0500, Stephanie Daugherty wrote: > FHS 2.3 apparently. They appear to serve mostly the same purpose, but /mnt
> is specified as "temporarily mounted filesystems" while /media is specified
> as just "removable media".
>
> Regardless, since the implementation of /media, automounters have tended to
> mount stuff there, while things manually mounted have tended to be mounted
> in /mnt, presumably avoiding conflict between what the administrator wants
> to do and what the automounter wants to do - which is a good precedent to
> follow IMHO.
Actually, the difference _does_ matter. Paths under /mnt are made by the
sysadmin and thus are secure, paths under /media are created based on
untrusted input.
These two need at least _some_ namespace disambiguation, and /mnt vs /media
serves that purpose.