Results 1 to 5 of 5

Thread: /dev/null loses character flag

  1. #1
    Join Date
    Jun 2006
    Location
    Waverly, IA
    Beans
    18
    Distro
    Ubuntu 13.10 Saucy Salamander

    Question /dev/null loses character flag

    I have two machines with the exact same behavior. Both are 13.10

    One is in an OpenVZ container. I believe that OpenVZ is the genesis of the problem.

    It has already caused problems with SSHD, and now our mailer and backup scripts are having trouble running.

    Anyway, I noticed that /dev/null was losing its character flag and then exim, tar and a few other things (most things, probably) start getting a little wonky.

    I wrote a script to delete the bad /dev/null and then mknod a new one-- but then it just gets changed back.

    I do not have any idea what's causing the change.

    EDIT: I think I may know what is causing it. I checked out and saw that the /dev/null file was 7 bytes long to I catted it out and it said simply: openvz

    And it is in an OpenVZ container. Why is this happening and how can I make it stop?

    Can anyone help?
    Last edited by Spuds; November 28th, 2013 at 05:34 AM.

  2. #2
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    3,363
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: /dev/null loses character flag

    Which Ubuntu? Your profile says you are still using 9.04.
    i5 650 3.2 GHz upgraded to i7 870, 16 GB 1333 RAM, nvidia GTX 1060, 32" 1080p & assorted older computers

  3. #3
    Join Date
    Jun 2006
    Location
    Waverly, IA
    Beans
    18
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: /dev/null loses character flag

    Oh I really feel like a turd now.

    13.10

  4. #4
    Join Date
    Jun 2006
    Location
    Waverly, IA
    Beans
    18
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: /dev/null loses character flag

    I edited the parent post.

    The one that behaves the worst and causes the most problems is the machine that is inside an OpenVZ container. It is a VPS through a provider.

    I found 'openvz' in /dev/null at one point, and I know it's an OpenVZ container-- so this may be the culprit.

    However, the server that is in our datacenter is a physical server. I haven't determined the origin of its problem yet.

    Hopefully someone here knows about this strange quirk with OpenVZ or will let me know that I'm on the wrong track.

  5. #5
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: /dev/null loses character flag

    Redirecting or writing to /dev/null means (should mean) that you don't write at all. /dev/null is created by the system and belongs to the system. You are not supposed to delete it and make it again. What happens if you reboot your system?

    https://en.wikipedia.org/wiki//dev/null

    In Unix-like operating systems, /dev/null or the null device is a special file that discards all data written to it but reports that the write operation succeeded. It provides no data to any process that reads from it, yielding EOF immediately.
    What are you trying to do? How are you using /dev/null?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •