Timeline for -bash: /dev/null: Permission denied
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 29, 2021 at 8:19 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 131 characters in body
|
| Jan 4, 2017 at 18:18 | history | edited | meschi | CC BY-SA 3.0 |
added 1 character in body
|
| Mar 4, 2016 at 17:27 | comment | added | Jonathan Leffler |
Major and minor numbers are not transportable between operating systems. What works on Linux won't usually work on *BSD or Mac OS X (or Solaris, AIX, HP-UX, …), and vice versa. You have to find the correct numbers to use in the mknod command by scrutiny of the manuals (if you're lucky, the information is in there) or by scrutiny of the kernel headers.
|
|
| Mar 16, 2015 at 21:54 | comment | added | Mark Plotnick |
Unfortunately, different operating systems use different major/minor numbers for /dev/null, and there's no standard. OP asked about CentOS 6. Linux has used 1,3 for /dev/null going back to at least 2001. On FreeBSD, I've seen 0,6, 15,0, 17,0, and 20,0. OpenBSD uses 2,2. On OpenBSD, you actually don't need to know the numbers; you can run # cd /dev; ./MAKEDEV std .
|
|
| Mar 15, 2015 at 18:23 | comment | added | ott-- | Didn't the OP use CentOS rather than OpenBSD? | |
| Mar 15, 2015 at 17:17 | review | Late answers | |||
| Mar 15, 2015 at 17:24 | |||||
| Mar 15, 2015 at 16:58 | review | First posts | |||
| Mar 15, 2015 at 17:16 | |||||
| Mar 15, 2015 at 16:53 | history | answered | meschi | CC BY-SA 3.0 |