Skip to content


bash: /dev/null: Permission denied

查看了下/dev/null变成600了,在执行/etc/profile.d/*.sh下脚本时没报没有权限.


rm -f /dev/null
mknod -m 666 /dev/null c 1 3

Posted in linux 维护优化.

Tagged with .


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. 销声匿迹、linux says

    这样的话登录的时候会提示/dev/null没有权限吧,也可以直接chmod 666 /dev/null

  2. C1G says

    给666了不会啊,因为我查看这文件时不是字符设备了,所以重建一个。

Continuing the Discussion

  1. the bash: / dev / null: Permission denied | Information News linked to this post on 2012/06/03

    […] C1G arsenal Be Sociable, Share! Tweet Shop Amazon – Get Ready for Summer – Everything You Need This entry was posted in ChinaSite and tagged bash, denied, Null, permission by beck917. Bookmark the permalink. […]



Some HTML is OK

or, reply to this post via trackback.