Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-13-2007, 07:30 AM   #1
Registered: Nov 2004
Location: Derby - UK
Distribution: Ubuntu at Home, RedHat Enterprise at Work
Posts: 46

Rep: Reputation: 15
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?!

Old 09-13-2007, 11:20 AM   #2
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
Enter this at the command line, and all will be revealed.
man dircolors
Old 01-07-2008, 10:24 AM   #3
LQ Newbie
Registered: Jan 2008
Distribution: various
Posts: 1

Rep: Reputation: 0
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)
Old 04-18-2013, 09:30 AM   #4
LQ Newbie
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
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.
Old 03-18-2015, 11:18 AM   #5
LQ Newbie
Registered: Jul 2012
Location: China
Distribution: CENTOS 7
Posts: 6

Rep: Reputation: Disabled
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!

Last edited by xtpeqii; 03-18-2015 at 11:21 AM.


block, color, colour, ls, mount

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD RW mounts and shows files but can't read Koppie Linux - Hardware 3 05-27-2007 11:51 AM
I hate green splash screen colour jessj SUSE / openSUSE 3 09-03-2005 12:45 PM
totem n other media player shows no video(Hz green lines??) after installing updates? The_neo Mandriva 0 07-15-2004 04:47 AM
snmp staus shows it running but on trying MRTG, it shows public@ipaddr not giving res swati220781 Linux - Networking 3 07-08-2004 06:32 PM
PS2 mouse goes crazy [it goes round n round n round...] goci Linux - Hardware 2 10-09-2003 09:15 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration