[OmniOS-discuss] Long group names in ls acl output

Nathan Huff nrhuff at umn.edu
Tue Mar 3 21:04:16 UTC 2015


-n works for the regular user and group but seems to have no effect on 
ACL entries

/tank/shares$ /usr/bin/ls -Vn
total 132
drwx------+  5 256902   0              5 Jan 30 13:21 archive
      group:domain users:r-x---a-R-c---:-d-----:allow
     group:ahc_server_ops:rwxpdDaARWcCos:fd-----:allow
                  owner@:rwxpdDaARWc--s:fd-----:allow
                  group@:--------------:fd-----:allow
               everyone@:--------------:fd-----:allow
.
.
.

On 2015-03-03 2:58 PM, Paul B. Henson wrote:
>> Nathan Huff
>> Sent: Tuesday, March 03, 2015 7:41 AM
>>
>> domain that are longer than the 20 characters.  Looking at the ls man
>> page and source code I don't think there is an option to display either
>> a longer string or the uid/gid instead.
>
> $ uname -a
> SunOS storage 5.11 omnios-10b9c79 i86pc i386 i86pc
>
> $ man ls
> [...]
>         -n, --numeric-uid-gid
>                like -l, but list numeric user and group IDs
>
> $ cd / ; ls -n
> total 535
> lrwxrwxrwx   1 0 0      9 Sep  2  2013 bin -> ./usr/bin
> drwxr-xr-x   6 0 3      9 Sep  2  2013 boot
> drwxr-xr-x 238 0 3    238 Jan 20 16:09 dev
> drwxr-xr-x   9 0 3      9 Jan 20 16:08 devices
> drwxr-xr-x  63 0 3    207 Jan 20 16:09 etc
> drwxr-xr-x   7 0 0      7 Dec 14 20:06 export
> dr-xr-xr-x   2 0 0      2 Aug 14  2013 home
> drwxr-xr-x  18 0 3     19 Dec 20 18:00 kernel
> drwxr-xr-x  10 0 2    180 Jan 16 18:42 lib
> drwxr-xr-x   2 0 0      3 Sep  2  2013 media
> drwxr-xr-x   2 0 3      2 Sep  2  2013 mnt
> dr-xr-xr-x   2 0 0      2 Sep  2  2013 net
> drwxr-xr-x   3 0 3      3 Dec 20 17:49 opt
> drwxr-xr-x   5 0 3      5 Aug 14  2013 platform
> dr-xr-xr-x 128 0 0 480032 Mar  3 12:53 proc
> drwx------   3 0 0      7 Dec 20 20:45 root
> drwxr-xr-x   3 0 0      3 Sep  2  2013 rpool
> drwxr-xr-x   2 0 3     62 Nov 24 10:34 sbin
> drwxr-xr-x   5 0 0      5 Aug 14  2013 system
> drwxrwxrwt   3 0 3    242 Mar  3 12:50 tmp
> drwxr-xr-x  29 0 3     41 Nov 24 10:34 usr
> drwxr-xr-x  35 0 3     35 Nov  8  2013 var
> drwxr-xr-x   4 0 0      4 Dec 20 20:46 zones
>
>
>

-- 
Nathan Huff
System Administrator
Academic Health Center Information Systems
University of Minnesota
612-626-9136


More information about the OmniOS-discuss mailing list