bash: /dev/null: Permission denied 라는 에러메시지 fix 방법

The problem seems to be with the permissions of
the /dev/null. This seems to be read only at the
moment for you. Check this by logging in as root
and listing it with the command:
ls -l /dev/null
You should see this if everything is correctly
set:
crw-rw-rw- 1 root root 1, 3

If you get a different set of permissions like
this maybe:
-rw-r--r-- 1 root root 1, 3

then you should (as root) delete the /dev/null with:
rm /dev/null

and recreate it (as root) again with:
mknod -m 0666 /dev/null c 1 3

(The device number according to the Kernel source
in the documentation under Documentation/devices.txt
supposed to be Major=1 und Minor=3)

Now, list the /dev/null again and you should see
the permissions as above.

'TA > Common' 카테고리의 다른 글

서버 날짜 수정 - date  (0) 2013.08.26
du apparent-size  (0) 2013.07.29
부팅시 자동 마운트 방법  (0) 2013.02.05
서버가 부팅시 시작되는 서비스들 확인  (0) 2013.02.05
원하는 사이즈를 가진 파일 만들기  (0) 2013.02.05
Posted by 옥탑방람보
,