Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Strange file in the root directory

  1. #1
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,529

    Default Strange file in the root directory

    In a fresh install of 11.4 I see a file named "1" (the number "One") in the / (root) directory.

    Code:
    vodoo@host:/> ls -l 1
    -rw-r--r-- 1 root root 0 May 31 11:29 1
    Who creates this file and what is it good for?
    Technology is 'stuff that doesn't work yet.' -- Bran Ferren

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,818

    Default Re: Strange file in the root directory

    That file is created by root (who else, or root must have spoiled the access bits of /).

    I do not thinks it good for anything.

    I guess that some human being loged in as root (you?) and did something that is not easy to recontruct for me (but maybe for you when you rethink all of the things you have done as root on he system, it is only 24 hours ago).

    It is very easy to spoil your system while being root (I know you know it), one small typo ........

    You could check the contents, it is only 1 byte
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Strange file in the root directory

    It may be a bug in some script where the author wrote by mistake:

    2>1 instead of 2>&1

    If you would like to do a grep in all the installation scripts, you may have a bug to report. You're welcome to it.

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Strange file in the root directory

    Quote Originally Posted by hcvv View Post
    You could check the contents, it is only 1 byte
    Actually it's empty. Which reduces greatly the possibilities of what it could contain.

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,818

    Default Re: Strange file in the root directory

    While of (very) minor importance, I deny it is empty. Then it would have shown 0 for the size. Now it shows 1.
    I agree that this byte most probably is a New Line. I also agree that "2>1 instead of 2>&1" would create this and that it has a high probability of being the culprit.
    Henk van Velden

  6. #6
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Strange file in the root directory

    The 1 is the link count. The size field is after the owner and group.

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,818

    Default Re: Strange file in the root directory

    You are correct. I take the rest of the day off and will hide in a dark corner
    Henk van Velden

  8. #8
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,529

    Default Re: Strange file in the root directory

    I guess that some human being loged in as root (you?)
    No. As I said: it was there yesterday right after a fresh install, before touching anything. But I think ken_yap is on the right track. My question now is: does everyone have it or just some of the users? I see this on all 3 hosts where I installed 11.4.
    Technology is 'stuff that doesn't work yet.' -- Bran Ferren

  9. #9
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Strange file in the root directory

    You could report it anyway in bugzilla and some dev may check it out.

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,818

    Default Re: Strange file in the root directory

    I have installed 11.4 some time ago. Did not look if I had it (of course) and thus never deleted it. I do not have it now.
    Henk van Velden

Page 1 of 3 123 LastLast

Posting Permissions

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