You are not logged in.
Hello guys,
just installed Archlinux on another laptop yesterday.
Today I notice that /etc and serveral other directories is owned by my main user account 'lars'
I'm a bit mystified, since some directories/files has the right ownership /etc/sudoers, but others
doesn't have like /etc/systemd and /etc/shadow
Any ideas on why? and how to easiest fix it without a reinstall ?
ie. ls output is
❯ ls -l /
total 48
lrwxrwxrwx 1 root root 7 Sep 30 19:18 bin -> usr/bin
drwxr-xr-x 3 lars lars 4096 Dec 27 04:02 boot
drwxr-xr-x 19 root root 3120 Dec 29 08:06 dev
drwxr-xr-x 2 root root 4096 Dec 27 20:24 efi
drwxr-xr-x 60 root root 4096 Dec 29 08:58 etc
drwxr-xr-x 4 root root 4096 Dec 27 04:13 home
lrwxrwxrwx 1 root root 7 Sep 30 19:18 lib -> usr/lib
drwx------ 2 root root 4096 Dec 27 20:31 lost+found
drwxr-xr-x 8 lars lars 4096 Dec 29 08:10 mnt
drwxr-xr-x 3 lars lars 4096 Dec 27 04:54 opt
dr-xr-xr-x 136 root root 0 Dec 29 08:06 proc
-rw-r--r-- 1 lars lars 1276 Oct 1 17:16 README
drwxr-x--- 5 lars lars 4096 Dec 29 03:51 root
drwxr-xr-x 21 root root 520 Dec 29 08:07 run
lrwxrwxrwx 1 root root 7 Sep 30 19:18 sbin -> usr/bin
drwxr-xr-x 4 lars lars 4096 Dec 28 09:43 srv
dr-xr-xr-x 12 root root 0 Dec 29 09:37 sys
drwxrwxrwt 13 root root 300 Dec 29 09:23 tmp
drwxr-xr-x 8 lars lars 4096 Dec 27 02:19 usr
drwxr-xr-x 12 lars lars 4096 Dec 27 04:06 var
and some of the output for /etc
❯ ls -l /etc
total 908
-rw-r--r-- 1 root root 0 Sep 30 19:18 arch-release
drwxr-xr-x 3 root root 4096 Dec 6 12:36 avahi
-rw-r--r-- 1 root root 28 Nov 23 20:23 bash.bash_logout
-rw-r--r-- 1 root root 603 Nov 23 20:23 bash.bashrc
drwxr-xr-x 2 lars lars 4096 Sep 22 19:36 binfmt.d
drwxr-xr-x 4 lars lars 4096 Dec 26 14:19 ca-certificates
drwxr-xr-x 2 root root 4096 Dec 5 16:31 conf.d
-rw-r--r-- 1 root root 175 Nov 2 19:32 cpufreq-bench.conf
-rw------- 1 root root 930 Sep 30 19:18 crypttab
drwxr-xr-x 2 root lp 4096 Dec 6 12:02 cups
drwxr-xr-x 3 lars lars 4096 Dec 26 15:34 dbus-1
drwxr-xr-x 2 lars lars 4096 Dec 27 22:47 default
drwxr-xr-x 2 lars lars 4096 Aug 14 14:01 depmod.d
-rw-r--r-- 1 root root 1356 Dec 27 20:49 dhcpcd.conf
-rw-r--r-- 1 root root 42 Dec 27 04:07 dhcpcd.duid
-rw-r--r-- 1 root root 3384 Dec 17 09:47 drirc
-rw-r--r-- 1 root root 97 Nov 14 14:12 environment
drwxr-xr-x 4 root root 4096 Dec 27 10:09 fonts
-rw-r--r-- 1 root root 717 Dec 29 09:07 fstab
-rw-r--r-- 1 root root 2584 Sep 1 17:20 gai.conf
drwxr-xr-x 6 root root 4096 Oct 3 2013 gconf
drwxr-xr-x 3 root root 4096 Nov 29 18:01 gimp
-rw-r--r-- 1 lars lars 781 Dec 27 10:22 group
-rw-r--r-- 1 lars lars 770 Dec 27 04:12 group-
drwxr-xr-x 2 root root 4096 Dec 15 15:51 grub.d
-rw------- 1 lars lars 648 Dec 27 10:22 gshadow
-r--r----- 1 root root 3252 Dec 27 21:46 sudoers
drwxr-x--- 2 root root 4096 Nov 3 07:01 sudoers.d
drwxr-xr-x 2 lars lars 4096 Dec 27 14:42 sysctl.d
drwxr-xr-x 5 lars lars 4096 Dec 26 15:34 systemd
-rw------- 1 lars lars 745 Dec 27 10:22 shadow
Offline
How did you install Arch?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online