Dev-null

From My Notepad
Jump to: navigation, search

CentOS /dev/null Permission Denied

[root@xxx server]# rm /dev/null 
[root@xxx server]# mknod -m 666 /dev/null c 1 3
[root@xxx server]# ls -ltr /dev/null
crw-rw-rw- 1 root root 1, 3 Feb 10 10:03 /dev/null
[root@xxx server]# chown root:utmp /dev/null</dev>