3 ms·
Device files require that the mount point allow device files. That's a mount-time option, and "nodev" will prevent this. You'll still be able to create named
by dredmorbius 5y ago
Device files require that the mount point allow device files. That's a mount-time option, and "nodev" will prevent this.
You'll still be able to create named pipes (mkfifo), but mknod will fail.
This is handy for filesystems with a poorly developed sense of user ownership and permissions, say, msdos or vfat.
I tend to mount my /tmp space nodev and nosuid, as occasionally you'll find poorly-written, or nefariously-intended programs attempting to do such things there.