Find the answer to your Linux question:
Results 1 to 4 of 4
Hey all, I was just cirous to see if someone could gimme a hand here. When I su in slackware, I lose all ansi colours that differentiate between files and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2003
    Location
    Ontario, Canada
    Posts
    14

    su command in slackware 9.0


    Hey all,

    I was just cirous to see if someone could gimme a hand here. When I su in slackware, I lose all ansi colours that differentiate between files and directories. All appear the same colour (white in my case). I know this is normal in slackware, but I was wondering if there is a way to "activate" the colour coding.

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    Same thing happens for me in Slackware 8.1

    When you "su", run "su -" instead (su, followed by a space, then a minus), it will respawn a shell and re-read the environment variables for you.

    Jason

  3. #3
    Just Joined!
    Join Date
    Jun 2003
    Location
    Ontario, Canada
    Posts
    14
    excellent, thanks a million

  4. #4
    flw
    flw is offline
    Linux Engineer
    Join Date
    Mar 2003
    Location
    U.S.A.
    Posts
    1,025
    Another way of phrasing it is "su -" uses the profile of root where "su" give you root permissions but not the profile.
    Dan

    \"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"

Posting Permissions

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