Can't see group names when listing folders/files (ls -al)

Hello Garuda users.

When i run the command with my default user

ls -al

i can't see the group name in which the file belongs.

drwxr-xr-x    - omiros 22 Απρ  10:25 Desktop
drwxr-xr-x    - omiros 15 Απρ  17:48 Documents
drwxr-xr-x    - omiros 21 Απρ  20:35 Downloads

Only when running the command as root user with sudo i can see the group names.

drwxr-xr-x 1 omiros omiros    130 Απρ  22 10:25 Desktop
drwxr-xr-x 1 omiros omiros    106 Απρ  15 17:48 Documents
drwxr-xr-x 1 omiros omiros    290 Απρ  21 20:35 Downloads

Could anybody please help me?
Thank you!

What is the problem?
Make an alias and you always get to see everything you want to see.

alias l='sudo ls -la'

Just so it's the same for everyone, it would be nice to see your garuda-inxi too. :smiley:

2 Likes

That's probably due to the fact that we alias ls with exa.
If you check your .config/fish/config.fish you can see and if necessary change that alias.
Something like (just copying from other post in this moment)

## Useful aliases
# Replace ls with exa
alias ls='exa -al --color=always --group-directories-first --icons' # preferred listing
alias la='exa -a --color=always --group-directories-first --icons'  # all files and dirs
alias ll='exa -l --color=always --group-directories-first --icons'  # long format
alias lt='exa -aT --color=always --group-directories-first --icons' # tree listing
alias l.="exa -a | egrep '^\.'"

If you like exa, you could keep it and add the g option. See:

6 Likes

There is no problem, i am just used from other Debian-based distributions (Ubuntu, Mint, Parrot) that whenever i wanted to list files and see their group names, i didn't have to write my password. That's all. From my experience the "problem" seems like that my default user has only access reading the group IDs (GID) from the /etc/group file and not the group names. But after running the command:

ls -al /etc | grep group

I got the result:

.rw-r--r--  994 root 17 Απρ  01:57 group

Which seems like that i have the permission to read from this file as a default user...
Any other ideas why might this happens??

Here is my garuda-inxi:

System:
    Kernel: 6.2.11-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
        parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
        root=UUID=30141ea5-3dde-4d2e-802c-2d58395ffb13 rw rootflags=subvol=@
        quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
        loglevel=3 ibt=off
    Desktop: KDE Plasma v: 5.27.4 tk: Qt v: 5.15.9 wm: kwin_x11 dm: SDDM
    Distro: Garuda Linux base: Arch Linux
Machine:
    Type: Laptop System: Dell product: Inspiron 15 3511 v: N/A serial: <filter>
    Chassis: type: 10 serial: <filter>
    Mobo: Dell model: 0XMF7W v: A00 serial: <filter> UEFI: Dell v: 1.18.2
    date: 10/27/2022
Battery:
    ID-1: BAT0 charge: 37.7 Wh (93.5%) condition: 40.3/40.3 Wh (100.0%)
    volts: 12.4 min: 11.2 model: BYD DELL PG8YJ29 type: Unknown serial: <filter>
    status: discharging
CPU:
    Info: model: 11th Gen Intel Core i5-1135G7 bits: 64 type: MT MCP
        arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020
        process: Intel 10nm family: 6 model-id: 0x8C (140) stepping: 1
        microcode: 0xA6
    Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
         L1: 320 KiB desc: d-4x48 KiB; i-4x32 KiB L2: 5 MiB desc: 4x1.2 MiB L3: 8 MiB
         desc: 1x8 MiB
    Speed (MHz): avg: 2400 min/max: 400/4200 base/boost: 2400/4200 scaling:
        driver: intel_pstate governor: powersave volts: 0.7 V ext-clock: 100 MHz
        cores: 1: 2400 2: 2400 3: 2400 4: 2400 5: 2400 6: 2400 7: 2400 8: 2400
        bogomips: 38707
    Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
        Vulnerabilities: <filter>
Graphics:
    Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Dell
        driver: i915 v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21
        ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 0000:00:02.0
        chip-ID: 8086:9a49 class-ID: 0300
    Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
        bus-ID: 1-6:2 chip-ID: 0c45:6730 class-ID: 0e02
    Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
         compositor: kwin_x11 driver: X: loaded: modesetting
         alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
    Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
        s-diag: 582mm (22.93")
    Monitor-1: eDP-1 model: LG Display 0x06ff built: 2021 res: 1920x1080
        hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
        ratio: 16:9 modes: 1920x1080
    API: OpenGL v: 4.6 Mesa 23.0.2 renderer: Mesa Intel Xe Graphics (TGL GT2)
        direct-render: Yes
Audio:
    Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Dell
        driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
        bus-ID: 0000:00:1f.3 chip-ID: 8086:a0c8 class-ID: 0403
    API: ALSA v: k6.2.11-zen1-1-zen status: kernel-api tools: N/A
    Server-1: PipeWire v: 0.3.69 status: n/a (root, process) with:
        1: pipewire-pulse status: active 2: wireplumber status: active
        3: pipewire-alsa type: plugin 4: pw-jack type: plugin
        tools: pactl,pw-cat,pw-cli,wpctl
Network:
    Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
         driver: rtw_8821ce v: N/A modules: rtw88_8821ce port: 3000
         bus-ID: 0000:01:00.0 chip-ID: 10ec:c821 class-ID: 0280
         IF: wlp1s0 state: up mac: <filter>
Bluetooth:
    Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
         bus-ID: 1-10:3 chip-ID: 0bda:c829 class-ID: e001 serial: <filter>
    Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
RAID:
    Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:9a0b rev: class-ID: 0104
Drives:
    Local Storage: total: 238.47 GiB used: 29.95 GiB (12.6%)
    ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: KDI model: OM3PDP3-AD NVMe 256GB
        size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
        lanes: 4 type: SSD serial: <filter> rev: 10100002 temp: 39.9 C scheme: GPT
    SMART: yes health: PASSED on: 8 hrs cycles: 45
        read-units: 1,052,376 [538 GB] written-units: 1,382,624 [707 GB]
Partition:
    ID-1: / raw-size: 146.48 GiB size: 146.48 GiB (100.00%)
        used: 29.83 GiB (20.4%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p7
        maj-min: 259:7
    ID-2: /boot/efi raw-size: 400 MiB size: 396 MiB (99.00%)
        used: 131.7 MiB (33.3%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
        maj-min: 259:1
    ID-3: /home raw-size: 146.48 GiB size: 146.48 GiB (100.00%)
        used: 29.83 GiB (20.4%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p7
        maj-min: 259:7
    ID-4: /var/log raw-size: 146.48 GiB size: 146.48 GiB (100.00%)
        used: 29.83 GiB (20.4%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p7
        maj-min: 259:7
    ID-5: /var/tmp raw-size: 146.48 GiB size: 146.48 GiB (100.00%)
        used: 29.83 GiB (20.4%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p7
        maj-min: 259:7
    Swap:
        Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
        ID-1: swap-1 type: zram size: 31.1 GiB used: 0 KiB (0.0%) priority: 100
            dev: /dev/zram0
Sensors:
    System Temperatures: cpu: 51.0 C mobo: N/A
        Fan Speeds (RPM): N/A
Info:
    Processes: 241 Uptime: 15m wakeups: 48642 Memory: 31.1 GiB
        used: 2.83 GiB (9.1%) Init: systemd v: 253 default: graphical
        tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
        pkgs: 1331 libs: 368 tools: octopi,paru,yay Shell: garuda-inxi (sudo)
        default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.26
Garuda (2.6.16-1):
    System install date:     2023-04-14
    Last full system update: 2023-04-21
    Is partially upgraded:   No
    Relevant software:       snapper NetworkManager dracut
    Windows dual boot:       Yes
    Failed units:

Thank you!!
Adding the g fixed the problem

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.