LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NTFS directory coloring (https://www.linuxquestions.org/questions/linux-newbie-8/ntfs-directory-coloring-933793/)

Tachtory 03-10-2012 02:51 PM

NTFS directory coloring
 
Hi I am trying to find how to change the green highlight that appears on NTFS file directories. It is very hard to read because the text is blue.

I tried suggested here http://ubuntuforums.org/showthread.php?t=764824

to use 01;34 for STICKY_OTHER_WRITABLE and OTHER_WRITABLE

But nothing has changed.

I saved the file as .mydircolors in home directory and then I couldn't find .bashrc in home directory (not sure why) so I edited the one in /etc/bash.bashrc That was the closest I could find.

But the lines he said to change are a little different.
I tried them to:
Code:

if type -P dircolors >/dev/null ; then
                if [[ -f ~/.dir_colors ]] ; then
                        eval $(dircolors ~/-mydircolors)
                elif [[ -f /etc/DIR_COLORS ]] ; then
                        eval $(dircolors ~/.mydircolors)
                fi
        fi


But nothing was changed when I logged off and logged back on.

bigrigdriver 03-10-2012 11:56 PM

I found this thread which addresses the same question. The respondent claims it's a matter of how the NTFS partition is mounted.
Quote:

You can use the fmask and dmask mount options to control the default file and directory permissions which is used to get the color for 'ls'. See the ntfs-3g manual for more details (e.g. type 'man ntfs-3g' on a terminal).

Alternatively use the NTFS-3G driver with full permission and ownership support which should always show the correct color: http://pagesperso-orange.fr/b.andre/security.html
I don't know one way or the other, since Debian uses a slightly different way of setting directory colors.


All times are GMT -5. The time now is 10:18 AM.