LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   ls -l shows mounts with a green block of colour round them (http://www.linuxquestions.org/questions/linux-server-73/ls-l-shows-mounts-with-a-green-block-of-colour-round-them-584383/)

0ddba11 09-13-2007 06:30 AM

ls -l shows mounts with a green block of colour round them
 
Hello all...

I have what I thought was an easy question to answer but I've been searching forums and googling for about an hour now to no avail!

On a CentOS 5 server that is acting as a disaster recovery server, I have several other file systems mounted to it (2 x NFS 6 x CIFS) under /mnt/drmounts

After mounting up the filesystems and doing an ls -l /mnt/drmounts, 7 of the mounts (all 6 CIFS and 1 NFS) show up with a green block of colour round them.

Everything seems to work ok, but I would like to know what the green block of colour signifies as one of the mounts doesn't have it?!

Regards,
Gaz.

wjevans_7d1@yahoo.co 09-13-2007 10:20 AM

Enter this at the command line, and all will be revealed.
Code:

man dircolors

Molusc 01-07-2008 09:24 AM

It's taken me about 3 hours to work this out as well - there's nothing helpful in the manpage.

It appears that the green background signifies a directory that is "other-writable" (it's denoted ow by dircolor)

newvin 04-18-2013 08:30 AM

I don't know if this will help you, but commenting out or removing entries in your DIR_COLORS entries will not disable them. Instead, it causes them to fall back to a default. In most cases, this default is fine, but in the case of other-writable directories(at least in CentOS) it is a hideous blue text with green highlighting/background. To fix this, I think I changed the values of the STICKY_OTHER_WRITABLE, OTHER_WRITABLE, and STICKY to a less obnoxious value rather than delete/comment them out.


All times are GMT -5. The time now is 08:00 PM.