[plug] 'ls' and long usernames

Ryan ryan at is.as.geeky.as
Mon May 19 10:23:02 WST 2003


I've got a few Debian machines with a bunch of usersnames longer than 8
characters.  When using ls -l one prints it all nicely, and the others
shows the full username and get a bit messy.

I've been reading that assumptions about username lengths have been
dropped in more recent coreutils versions if that has anything to do
with it.

All I want is a way I can get it to display the old way, short of
downgrading things ... is there such a way?  The COLUMNS=xxx thing that
works on dpkg doesn't have any effect on ls.

The nice one:
=============
$ ls --version
ls (fileutils) 4.1

Example (/var/mail):

-rw-------    1 xxxxxxx  users           0 May 18 13:58 xxxxxxx
-rw-------    1 aaaaaaaa users           0 May 18 13:58 aaaaaaaaa
-rw-------    1 14charus users           0 May 18 13:58 14charusername
-rw-------    1 yyyyyyy  users           0 May 19 08:26 yyyyyyy
-rw-------    1 iiiiiiii users           0 May 18 13:58 iiiiiiiii
-rw-------    1 ffffffff users           0 May 19 08:27 ffffffff


The ugly ones:
==============
$ ls --version
ls (coreutils) 4.5.9
ls (coreutils) 5.0

Example (/var/mail):

-rw-------    1 xxxxxxx  users           0 May 18 13:58 xxxxxxx
-rw-------    1 aaaaaaaaa users           0 May 18 13:58 aaaaaaaaa
-rw-------    1 14charusername users           0 May 18 13:58
14charusername
-rw-------    1 yyyyyyy  users           0 May 19 08:26 yyyyyyy
-rw-------    1 iiiiiiiii users           0 May 18 13:58 iiiiiiiii
-rw-------    1 ffffffff users           0 May 19 08:27 ffffffff

Thanks,

Ryan




More information about the plug mailing list