[lug] ls -l output...fedora versus ubuntu

Jeffrey S. Haemer jeffrey.haemer at gmail.com
Fri Feb 13 14:06:30 MST 2015


On the Fedora box, try this:

  $ cd /
  $ ls -Z

You'll see the SELinux context info that the trailing '.' warns is there to
see. HTA(muses)!

On Fri, Feb 13, 2015 at 12:50 PM, Orion Poplawski <orion at cora.nwra.com>
wrote:

> On 02/13/2015 12:38 PM, stimits at comcast.net wrote:
> > Hi,
> >
> > I just noticed a single character which is different between a fedora 19
> > machine and an ubuntu 14.04 LTS, at the end of the permissions portion
> of ls.
> > So here's an example from fedora:
> > /bin/ls -lnd --time-style=long-iso --color=never /tmp
> > drwxrwxrwt. 15 0 0 560 2015-02-13 12:22 /tmp
> >
> > Here's the same thing from ubuntu:
> > /bin/ls -lnd --time-style=long-iso --color=never /tmp
> > drwxrwxrwt 5 0 0 4096 2000-01-01 00:01 /tmp
> >
> > In the case of ubuntu I see what is expected for permissiosn:
> > drwxrwxrwt
> >
> > In the case of fedora, I see an extra character, a "radix" or "period",
> at the
> > end of permissions...it's one extra character:
> > drwxrwxrwt.
> >
> > Does anyone know if this period has any meaning? I'm working with a
> script
> > that needs to work the same on all of the modern linux flavors, and am
> not
> > sure of the nature of this difference.
>
> From "info ls":
>
>      Following the file mode bits is a single character that specifies
>      whether an alternate access method such as an access control list
>      applies to the file.  When the character following the file mode
>      bits is a space, there is no alternate access method.  When it is a
>      printing character, then there is such a method.
>
>
> --
> Orion Poplawski
> Technical Manager                     303-415-9701 x222
> NWRA, Boulder/CoRA Office             FAX: 303-415-9702
> 3380 Mitchell Lane                       orion at nwra.com
> Boulder, CO 80301                   http://www.nwra.com
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>



-- 
Jeffrey Haemer <jeffrey.haemer at gmail.com>
720-837-8908 [cell], http://seejeffrun.blogspot.com [blog],
http://www.youtube.com/user/goyishekop [vlog]
*פרייהייט? דאס איז יאַנג דינען וואָרט.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20150213/6431aea3/attachment.html>


More information about the LUG mailing list