Re: Cannot display /etc/fstab

From: Ivan Marsh (annoyed_at_you.now)
Date: 06/23/05

  • Next message: Trog Woolley: "Re: nis"
    Date: Thu, 23 Jun 2005 10:12:24 -0500
    
    

    On Thu, 23 Jun 2005 10:19:28 +0100, Gordon wrote:

    > Vic wrote:
    >>>Slightly off-topic but similar, when I su in a terminal, (FC4) I can't
    >>>use FDISK! I get bash - fdisk not found. Yet if I log in as Root user, I
    >>>can use FDISK! Strange.
    >>
    >>
    >> That's just a path thing.
    >>
    >> fdisk sits in /sbin/ - which will be in your path when you are the root
    >> user, but not so when you are anyone else.
    >>
    >> If you're just using "su" to get to be root, it still won't be in your
    >> path. su leaves the environment untouched unless you specify "su -".
    >>
    >
    > A very lucid reply. Thanks! How do I add /sbin/ to my user's path?

    Add it to the path in /etc/profile...

    But don't.

    /sbin is full of commands that should only be run as root.

    -- 
    "Blessed is he who expects nothing, for he shall never be disappointed."
       Benjamin Franklin (I didn't know he was a Buddhist)
    

  • Next message: Trog Woolley: "Re: nis"