-   Linux - Server (
-   -   ls -l shows mounts with a green block of colour round them (

0ddba11 09-13-2007 07: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?!

Gaz. 09-13-2007 11:20 AM

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

man dircolors

Molusc 01-07-2008 10: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 09: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 07:18 AM.