Temat: AA właścicielem wszystkich plików jest uid=1000
Witam,
Ostatnio zauważyłem, że właścicielem wszystkich plików (systemowych) nie jest root tylko użytkownik o uid=1000. Jak zrobię ls to dostaję coś takiego:
root@flexibity:/etc# ls -l
lrwxrwxrwx 1 1000 1000 7 Oct 17 09:44 TZ -> /tmp/TZ
-rw-r--r-- 1 1000 1000 255 Oct 17 09:21 banner
drwxr-xr-x 2 1000 1000 496 Oct 17 09:44 config
drwxr-xr-x 2 1000 1000 160 Oct 17 09:21 crontabs
-rw-r--r-- 1 1000 1000 68 Jun 12 12:48 diag.sh
drwx------ 2 root 1000 320 Oct 17 10:09 dropbear
lrwxrwxrwx 1 1000 1000 10 Oct 17 09:44 fstab -> /tmp/fstab
lrwxrwxrwx 1 1000 1000 19 Oct 17 09:44 functions.sh -> ../lib/functions.sh
-rw-r--r-- 1 1000 1000 123 Jun 12 12:48 group
-rw-r--r-- 1 1000 1000 20 Jun 12 12:48 hosts
drwxr-xr-x 5 1000 1000 360 Oct 17 09:44 hotplug.d
-rw-r--r-- 1 1000 1000 833 Jun 12 12:48 hotplug2-common.rules
-rw-r--r-- 1 1000 1000 80 Jun 12 12:48 hotplug2-init.rules
-rw-r--r-- 1 1000 1000 242 Oct 17 09:12 hotplug2.rules
drwxr-xr-x 2 1000 1000 1216 Oct 17 09:44 init.d
-rw-r--r-- 1 1000 1000 136 Jun 12 12:48 inittab
drwxr-xr-x 3 1000 1000 288 Oct 17 09:44 mc
drwxr-xr-x 2 1000 1000 376 Oct 17 09:44 modules-boot.d
drwxr-xr-x 2 1000 1000 968 Oct 17 09:44 modules.d
lrwxrwxrwx 1 1000 1000 12 Oct 17 09:44 mtab -> /proc/mounts
-rw-r--r-- 1 1000 1000 209 Oct 17 09:21 openwrt_release
-rw-r--r-- 1 1000 1000 8 Oct 17 09:21 openwrt_version
-rw-r--r-- 1 1000 1000 188 Oct 17 09:13 opkg.conf
-rw-r--r-- 1 1000 1000 190 Oct 17 10:14 passwd
-rw-r--r-- 1 1000 1000 190 Jun 12 12:48 passwd-
-rwxr-xr-x 1 1000 1000 888 Jun 12 12:48 preinit
-rw-r--r-- 1 1000 1000 480 Jun 12 12:48 profile
-rw-r--r-- 1 1000 1000 2478 Jun 12 12:48 protocols
-rwxr-xr-x 1 1000 1000 1555 Jun 12 12:48 rc.common
drwxr-xr-x 2 1000 1000 1408 Oct 17 09:44 rc.d
-rw-r--r-- 1 1000 1000 132 Jun 12 12:48 rc.local
lrwxrwxrwx 1 1000 1000 16 Oct 17 09:44 resolv.conf -> /tmp/resolv.conf
-rw-r--r-- 1 1000 1000 20 Oct 17 09:14 screenrc
-rw-r--r-- 1 1000 1000 4712 Oct 17 09:12 ser2net.conf
-rw-r--r-- 1 1000 1000 3017 Jun 12 12:48 services
-rw------- 1 1000 1000 153 Oct 17 10:14 shadow
-rw------- 1 1000 1000 116 Jun 12 12:48 shadow-
-rw-r--r-- 1 1000 1000 9 Jun 12 12:48 shells
-rw-r--r-- 1 1000 1000 838 Jun 12 12:48 sysctl.conf
-rw-r--r-- 1 1000 1000 128 Jun 12 12:48 sysupgrade.conf
drwxr-xr-x 2 1000 1000 160 Jan 1 1970 uci-defaults
-rw-r--r-- 1 root root 509 Jan 1 1970 uhttpd.crt
-rw-r--r-- 1 root root 607 Jan 1 1970 uhttpd.keyWcześniej właścicielem wszystkich tych plików był root. Dotyczy to wszystkich plików systemowych.
Po ponownym skompilowaniu całości jest to samo. Dodam, że uid=1000 ma użytkownik na którym pracuję na komputerze host. Ktoś spotkał się z takim czymś ?