Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been messing around with the colours of the files under the .dircolor file, and it worked perfectly under the Linux folders.

But whenever I try to ls to a NTFS folder all files are displayed under the green colour despite they are different type of files and of course different of the ones I set up in the .dircolor.

I've already searched the whole file with the colour number and got no clue...

Do I have to edit .bashrc or .dircolor to make them take into account those NTFS mounted drives?

Thanks for your time

share|improve this question
are the the files maybe green because they are all recognized as executable, and the executable color is taking precedence over the coloring for filetypes? – Paul Hänsch Oct 29 '12 at 20:04
The problem is that there are different kind of files, .mp3,.m4a,.jpg,.png all in the executable colour :S – Vndtta Oct 31 '12 at 0:04

I had same issue and I found solution here:

Note that on Ubuntu 12.04.1, you don't need to change your .bashrc (bash script already takes care of .dircolors file in home dir).

So just do:

> dircolors --print-database > ~/.dircolors
> vi ~/.dircolors

and change following lines:

STICKY_OTHER_WRITABLE 01;34 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 01;34 # dir that is other-writable (o+w) and not sticky
share|improve this answer
The problem was that all were in the same color, it was probably that they all had executable permissions and as you can't change permissions in a nfts file it will remain always the same. Thanks anyway – Vndtta Jan 16 '13 at 21:52
This worked for me. Thanks. – Geoff Nov 10 '13 at 17:15
up vote 0 down vote accepted

The problem as mentioned by Paul was that all the files had executable permissions and as you can't permanently change permissions in a file inside a nfts drive it will remain always green

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.