Re: Cannot display /etc/fstab

From: Bruce Sinclair (bruce.sinclair_at_NOSPAMORELSEagresearch.NOTco.NOTnz)
Date: 06/23/05

  • Next message: Nathan Funk: "Simple command line network monitor"
    Date: Thu, 23 Jun 2005 00:20:52 GMT
    
    

    In article <d9crlu$jlj$04$1@news.t-online.com>, "cody" <deutronium@gmx.de> wrote:
    <tpf>
    >"Ivan Marsh" <annoyed@you.now> schrieb im Newsbeitrag
    >news:pan.2005.06.22.18.22.09.629349@you.now...
    >>> "Ivan Marsh" <annoyed@you.now> schrieb im Newsbeitrag
    >>> news:pan.2005.06.22.17.35.58.975100@you.now...
    >>>> On Wed, 22 Jun 2005 02:13:10 +0200, cody wrote:
    >>>>
    >>>>> I got the message when attempting to open this file from the GUI
    >>>>> (gnome).
    >>>>
    >>>> Shall we try and guess which application you were attempting to view
    >>>> the file with?
    >>>>
    >> On Wed, 22 Jun 2005 19:45:19 +0200, cody wrote:
    >>
    >>> Thanks for answering me.
    >>>
    >>> By default is is opened with the TextEditor. I tried other programs, the
    >>> same message, so I guess the message came from the OS, not from the
    >>> specific application. I have no clue what the cause of the problem could
    >>> be.
    >>
    >> Well, if you have rights to the file, which root should, and you still
    >> can't open it that's a bit of a head scratcher.
    >>
    >> This may be an issue with being logged into the GUI as root. Some say you
    >> should never do that... I'm not sure why. I don't log in as root as a rule
    >> in general, so maybe someone else has some insight into that.
    >I also noticed that /etc/fstab had like some other files in this directory
    >another icon although I couldn't find any properties of the file which
    would
    >explain this.
    >
    >The funny thing is that I now opened the file from texteditor by starting
    >the texteditor and chose "file open" and it worked. Then I found a label
    >name in fstab which contained lots of special chars which couldn't properly

    >displayed. Then I removed those special chars and replaced it with a valid
    >identifier. After I saved the file it had a normal icon like most other
    >files in /etc and I now could open it with the texteditor without problems.
    >
    >That means that a file which contains special chars/binary content is
    >treatet differenct by the GUI. But how does that work? Does the GUI scan
    the
    >contents *all* files in a folder to determine which icon it shall display
    >for each one?

    Something that took me a while to get is that RH does not depend on the file
    extension to tell it what sort of a file it is. I found this out with jpg
    files ... RH had no problem working out what they were ... but when I
    transferred them to a windows box, it spat the dummy :)

    .. so I think the answer to your question is probably ... yes, that's
    exactly what it does :)

    Bruce

    -------------------------------------
    The power of accurate observation is commonly called cynicism by those who have not got it.
    - George Bernard Shaw
    Cynic, n: a blackguard whose faulty vision sees things as they are, not as they ought to be.
    - Ambrose Bierce

    Caution ===== followups may have been changed to relevant groups
    (if there were any)


  • Next message: Nathan Funk: "Simple command line network monitor"

    Relevant Pages

    • Re: Beagle
      ... to run GUI as root. ... launching a system-config widget that requires root level access to the ... running GUI as root provides all privileges to all processes at all ...
      (Fedora)
    • Re: Problem booting Fedora Core 4
      ... Fedora boot choice and press the 'e' key. ... After the system is done boot log on as root ... If everything looks good then exit out of the GUI session and type 'init ... messages you get (hint: see the .xsession-errors file). ...
      (linux.redhat.misc)
    • Re: Getting close here folks! Looking good.
      ... That makes GUI system administration tools kind of a dead ... The GUI doesn't have to run with root privilege. ... Yes, for those that worry, I have a router doing nat feeding the firewall, ...
      (Fedora)
    • Re: Passing between GUIs without nesting
      ... Harlon Fintree wrote: ... If you're passing a massive database, ... -open gui 2 and pass a copy of the data ... Open gui2 and use the gui1 handle from the root to do ...
      (comp.soft-sys.matlab)
    • Re: Suse 9.2, KDE 3.4 does not allow root login after KDE upgrade
      ... GUI program as root, use 'sux' from a command line or Alt-F2 and then ... Linux Potpourri and a.o.l.s. ... "Lost? ...
      (alt.os.linux.suse)