> I make my own null character devices as I need them.
Why? Is there ever a reason to have more than one file on your system which acts as a /dev/null?
> I make my own null character devices as I need them.
Why? Is there ever a reason to have more than one file on your system which acts as a /dev/null?
In my case, the reason is because it's shorter to type.
I would expect most longtime UNIX users have experienced what happens when, for one reason or another, /dev/null is not a null character device and you have scripts or programs writing to it as if it was. By the time you realize that this has happened, it's too late -- data has already been saved to this file.
There may be various workarounds for this. I'm not a professional sysadmin.
But in my case, for my own personal usage systems, by using my own null character device in my own tmpfs mounted folders, I can just test for the success/failure of the mknod command before I start redirecting anything to it.
I don't need a /dev/null. But I do need mknod.
setuidgid luser mknod ...
Are you sure?Multiuser UNIX is a relic from a long past era of shared computing. The "root" concept creates more security issues than it solves. That's why Plan 9 did away with it.
Yes. It's called a chroot jail.
One often needs mknod to build chroot jails because the program or programs that one intends to run in the chrooted in the jail directory require access to certain device files.