[CentOS] ls permissions format changed in CentOS 8

Fri Oct 25 22:07:30 UTC 2019
Alexander Dalloz <ad+lists at uni-x.org>

Am 25.10.2019 um 23:44 schrieb Kenneth Porter:
> When I use "ls -al" on a directory, for files with only owner read/write 
> permission, the displayed attributes are "-rw-", not "-rw-------". That 
> means the file names don't line up with other files in the directory, 
> which makes the listing harder to read. What changed where and how do I 
> fix that?

Hm?

[adalloz at centos8 ~]$ touch foo
[adalloz at centos8 ~]$ chmod u=rw,go= foo
[adalloz at centos8 ~]$ ls -Al
insgesamt 12
-rw-r--r--. 1 adalloz adalloz  18 11. Mai 02:16 .bash_logout
-rw-r--r--. 1 adalloz adalloz 141 11. Mai 02:16 .bash_profile
-rw-r--r--. 1 adalloz adalloz 312 11. Mai 02:16 .bashrc
-rw-------. 1 adalloz adalloz   0 26. Okt 00:02 foo
[adalloz at centos8 ~]$ LANG=C stat foo
   File: foo
   Size: 0               Blocks: 0          IO Block: 4096   regular 
empty file
Device: fd02h/64770d    Inode: 788575      Links: 1
Access: (0600/-rw-------)  Uid: ( 1000/ adalloz)   Gid: ( 1000/ adalloz)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2019-10-26 00:02:37.707079231 +0200
Modify: 2019-10-26 00:02:37.707079231 +0200
Change: 2019-10-26 00:04:26.920196480 +0200
  Birth: -


Not sure what you were doing.

Alexander