bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ls coloured output for others writable directories difficult to read


From: Jim Meyering
Subject: Re: ls coloured output for others writable directories difficult to read
Date: Wed, 30 Dec 2009 20:04:36 +0100

C de-Avillez wrote:
> Original Ubuntu bug:
> https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/498212
>
> The default dircolours for an others writable directory is set as blue
> over green:
>
> STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
> OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
> STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
>
> The end result is a combination of colours that is rather difficult to
> discern (light blue over lime green), at least on my tries.
>
> I am not sure what colour would be better (I have a bit of a problem
> with some colours), but I tried red over green, and it is readable:
>
> OTHER_WRITABLE 31;42 # dir that is other-writable (o+w) and not sticky

I don't see the problem: it's readable for me when using
roxterm as my terminal emulator.

Here's what I did:

    $ mkdir other-writable
    $ chmod o+w other-writable
    $ env ls --color
    other-writable/

That final line is rendered with a blue background and
with green foreground text, "other-writable".

This sounds like a complaint about the default.
Anyone can use dircolors to set LS_COLORS to reflect their
personal preferences.

Unless it's a problem for most people[*], I'm reluctant
to change this.  Besides, world-writable directories can
pose a security risk, so you might consider the annoyance
to be a *feature*.  Think of it as encouragement to change
permissions to something safer.

[*] If you want to do a survey of a few people,
considering a few common terminal emulators per person,
that might provide enough evidence that a change would
be worthwhile.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]