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

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?!

Gaz. 09-13-2007 10:20 AM

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

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.

xtpeqii 03-18-2015 10:18 AM

I think I'll be the terminator
Interestingly, on encountering this problem as the post owner did, I did some reserach on the man page of it and as a reward I found something like "For details on the format of these files, run 'dircolors --print-database'."
When I execute "dircolors --print-database|less", I found this:

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
# This is for files with execute permission:
EXEC 01;32

So everything is clear now!:cool:

All times are GMT -5. The time now is 06:36 PM.