?
Solved

Recreate /dev/null

Posted on 2000-04-12
2
Medium Priority
?
268 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 400 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month12 days, 3 hours left to enroll

752 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