Solved

Recreate /dev/null

Posted on 2000-04-12
2
251 Views
Last Modified: 2013-12-15
How do you (recreate) chmod /dev/null?
0
Comment
Question by:ggt030456
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
fremsley earned 100 total points
ID: 2708295
Have you deleted /dev/null? As root:

  mknod /dev/null c 1 3

The access mode should be rw-rw-rw- As root:

  chmod a+rw /dev/null
  chmod a-x /dev/null
0
 

Author Comment

by:ggt030456
ID: 2709900
No, I didn't delete /dev/null, instead I was attempting to blank a file and somehow changed the attributes on /dev/null to rw-rw-rw...a regular text file. ( i guess I transposed the filenames)

Thanks for the quick reply. The mistake didn't hurt until I decided to reboot the box, then all heck broke loose!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question