Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N1 armbian-install 以后rootfs里的文件owner都是1023 #2808

Open
zeroxia opened this issue Feb 16, 2025 · 4 comments
Open

N1 armbian-install 以后rootfs里的文件owner都是1023 #2808

zeroxia opened this issue Feb 16, 2025 · 4 comments

Comments

@zeroxia
Copy link

zeroxia commented Feb 16, 2025

Device Information | 设备信息

  • SOC: S905d
  • Model N1

Armbian Version | 系统版本

  • Kernel Version: Linux armbian 6.12.13-ophub Support VFD #1 SMP Wed Feb 12 01:59:21 EST 2025 aarch64 aarch64 aarch64 GNU/Linux
  • Release: Armbian_25.02.0_amlogic_s905d_noble_6.12.13_server_2025.02.12.img.gz

Describe the bug | 问题描述

从 Release 页面下载的最新版:Armbian_25.02.0_amlogic_s905d_noble_6.12.13_server_2025.02.12.img.gz
N1从优盘启动,然后 armbian-install 安装到了 EMMC
普通用户登陆后,sudo无法使用,提示 /etc/sudoers.d, /usr/bin/sudo 等 owner不对。

root@armbian:~# ls -l /
total 68
lrwxrwxrwx   1 root root     8 Feb 12 17:59 bin -> /usr/bin
drwxr-xr-x   6 root root  8192 Jan  1  1970 boot
drwxr-xr-x  18 root root  6000 Feb 12 17:48 dev
drwxr-xr-x  98 1023 1023  4096 Feb 16 21:36 etc
drwxr-xr-x   3 1023 1023  4096 Feb 12 17:57 home
lrwxrwxrwx   1 root root     8 Feb 12 17:59 lib -> /usr/lib
drwxrwxr-x   2 root root  4096 Feb  2 10:47 lib.usr-is-merged
drwx------   2 root root 16384 Feb 12 17:57 lost+found
drwxr-xr-x   2 root root  4096 Feb 12 17:57 media
drwxr-xr-x   2 root root  4096 Feb 12 17:57 mnt
drwxr-xr-x   2 1023 1023  4096 Feb 12 17:57 opt
dr-xr-xr-x 202 root root     0 Jan  1  1970 proc
drwx------   6 root 1023  4096 Feb 16 21:29 root
drwxr-xr-x  29 root root   860 Feb 16 21:36 run
lrwxrwxrwx   1 root root     9 Feb 12 17:59 sbin -> /usr/sbin
drwxrwxr-x   2 1023 1023  4096 Feb 12 17:57 selinux
drwxr-xr-x   2 1023 1023  4096 Feb 12 17:57 srv
dr-xr-xr-x  12 root root     0 Feb 16 21:32 sys
drwxrwxrwt  13 root root   280 Feb 16 21:36 tmp
drwxr-xr-x  11 1023 1023  4096 Feb 12 17:59 usr
drwxr-xr-x  12 1023 1023  4096 Feb 12 17:48 var

root@armbian:/etc# ls -l /etc
total 1036
-rw-r--r--  1 1023 1023  3444 Feb 12 17:57 adduser.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 alternatives
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 apparmor.d
drwxr-xr-x  8 1023 1023  4096 Feb 12 17:57 apt
-rw-r--r--  1 1023 1023   331 Feb 12 17:57 armbian-distribution-status
-rw-r--r--  1 1023 1023   770 Feb 12 17:57 armbian-image-release
drwxr-xr-x  3 root root  4096 Feb 12 17:57 armbianmonitor
-rw-r--r--  1 1023 1023   737 Feb 12 17:48 armbian-release
-rw-r--r--  1 1023 1023 18708 Feb 12 17:57 armbian.txt
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 avahi
-rw-r--r--  1 1023 1023   151 Feb 12 17:57 balance_irq
-rw-r--r--  1 1023 1023  2319 Feb 12 17:57 bash.bashrc
-rw-r--r--  1 1023 1023    45 Feb 12 17:57 bash_completion
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 bash_completion.d
-rw-r--r--  1 1023 1023   367 Feb 12 17:57 bindresvport.blacklist
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 binfmt.d
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 ca-certificates
-rw-r--r--  1 1023 1023  6288 Feb 12 17:57 ca-certificates.conf
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 chrony
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:48 console-setup
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 cracklib
drwx------  2 root root  4096 Feb 12 17:57 credstore
drwx------  2 root root  4096 Feb 12 17:57 credstore.encrypted
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 cron.d
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 cron.daily
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 cron.hourly
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 cron.monthly
-rw-r--r--  1 1023 1023  1136 Feb 12 17:57 crontab
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 cron.weekly
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 cron.yearly
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 custom_service
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 dbus-1
-rw-r--r--  1 1023 1023  2967 Feb 12 17:57 debconf.conf
-rw-r--r--  1 1023 1023    11 Feb 12 17:57 debian_version
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:48 default
-rw-r--r--  1 1023 1023  1706 Feb 12 17:57 deluser.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 depmod.d
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 dhcp
-rw-r--r--  1 1023 1023  1429 Feb 12 17:57 dhcpcd.conf
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 dkms
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 dpkg
-rw-r--r--  1 1023 1023   685 Feb 12 17:57 e2scrub.conf
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 emacs
-rw-r--r--  1 1023 1023   106 Feb 12 17:57 environment
-rw-r--r--  1 1023 1023  1853 Feb 12 17:57 ethertypes
-rw-r--r--  1 1023 1023    20 Feb 16 21:25 fake-hwclock.data
-rw-r--r--  1 1023 1023 24501 Feb 12 17:57 fb.modes
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 fonts
-rw-r--r--  1 root root   301 Feb 12 17:59 fstab
-rw-r--r--  1 1023 1023   694 Feb 12 17:57 fuse.conf
-rw-r--r--  1 1023 1023  2584 Feb 12 17:57 gai.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 gnutls
-rw-r--r--  1 1023 1023  3986 Feb 12 17:57 gprofng.rc
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 groff
-rw-r--r--  1 1023 1023   818 Feb 12 17:57 group
-rw-r--r--  1 1023 1023   813 Feb 12 17:57 group-
-rw-r-----  1 1023 1023   696 Feb 12 17:57 gshadow
-rw-r-----  1 1023 1023   691 Feb 12 17:57 gshadow-
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 gss
-rw-r--r--  1 1023 1023  4436 Feb 12 17:57 hdparm.conf
-rw-r--r--  1 1023 1023    92 Feb 12 17:57 host.conf
-rw-r--r--  1 1023 1023     8 Feb 12 17:57 hostname
-rw-r--r--  1 1023 1023   204 Feb 12 17:57 hosts
-rw-r--r--  1 1023 1023   411 Feb 12 17:57 hosts.allow
-rw-r--r--  1 1023 1023   711 Feb 12 17:57 hosts.deny
-rw-r--r--  1 1023 1023   171 Feb 12 17:57 idmapd.conf
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 ifplugd
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 init.d
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 initramfs
drwxr-xr-x  5 1023 1023  4096 Feb 12 17:57 initramfs-tools
-rw-r--r--  1 1023 1023  1875 Feb 12 17:57 inputrc
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 insserv.conf.d
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 iproute2
-rw-r--r--  1 root root    26 Feb  7 01:43 issue
-rw-r--r--  1 root root    21 Feb  7 01:43 issue.net
drwxr-xr-x  8 1023 1023  4096 Feb 12 17:57 kernel
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 keyutils
-rw-r--r--  1 root root 17795 Feb 16 21:36 ld.so.cache
-rw-r--r--  1 1023 1023    34 Feb 12 17:57 ld.so.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 ld.so.conf.d
-rw-r--r--  1 root root   269 Feb  2 10:39 legal
-rw-r--r--  1 1023 1023   191 Feb 12 17:57 libaudit.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 libnl-3
-rw-r--r--  1 1023 1023  2996 Feb 12 17:57 locale.alias
-rw-r--r--  1 1023 1023    97 Feb 12 17:57 locale.conf
-rw-r--r--  1 1023 1023  9563 Feb 12 17:57 locale.gen
lrwxrwxrwx  1 1023 1023    35 Feb 12 17:57 localtime -> ../usr/share/zoneinfo/Asia/Shanghai
drwxr-xr-x  5 1023 1023  4096 Feb 12 17:57 logcheck
-rw-r--r--  1 1023 1023 12345 Feb 12 17:57 login.defs
-rw-r--r--  1 1023 1023   589 Feb 12 17:48 logrotate.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:48 logrotate.d
-rw-r--r--  1 1023 1023   102 Feb 12 17:57 lsb-release
-rw-r--r--  1 root root    33 Feb 12 17:57 machine-id
-rw-r--r--  1 1023 1023   111 Feb 12 17:57 magic
-rw-r--r--  1 1023 1023   111 Feb 12 17:57 magic.mime
-rw-r--r--  1 1023 1023  5230 Feb 12 17:57 manpath.config
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 mc
-rw-r--r--  1 1023 1023 75113 Feb 12 17:57 mime.types
-rw-r--r--  1 1023 1023   744 Feb 12 17:57 mke2fs.conf
-rw-r--r--  1 1023 1023 95309 Feb 12 17:57 model_database.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 modprobe.d
-rw-r--r--  1 1023 1023   212 Feb 12 17:57 modules
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 modules-load.d
lrwxrwxrwx  1 1023 1023    13 Feb 12 17:57 motd -> /var/run/motd
lrwxrwxrwx  1 1023 1023    19 Feb 12 17:57 mtab -> ../proc/self/mounts
-rw-r--r--  1 1023 1023 11424 Feb 12 17:57 nanorc
-rw-r--r--  1 1023 1023   767 Feb 12 17:57 netconfig
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 netplan
drwxr-xr-x  6 1023 1023  4096 Feb 12 17:57 network
drwxr-xr-x  8 1023 1023  4096 Feb 12 17:57 NetworkManager
-rw-r--r--  1 1023 1023    91 Feb 12 17:57 networks
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 newt
-rw-r--r--  1 1023 1023  1443 Feb 12 17:57 nfs.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 nfs.conf.d
-rw-r--r--  1 1023 1023   516 Feb 12 17:57 nsswitch.conf
drwxr-xr-x 12 1023 1023  4096 Feb 16 21:36 oh-my-zsh
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 openvpn
-rw-r--r--  1 1023 1023   683 Feb 16 21:32 ophub-release
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 opt
-rw-r--r--  1 root root   402 Feb  7 01:43 os-release
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 PackageKit
-rw-r--r--  1 1023 1023   552 Feb 12 17:57 pam.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 pam.d
-rw-r--r--  1 1023 1023  1767 Feb 12 17:57 passwd
-rw-r--r--  1 1023 1023  1753 Feb 12 17:57 passwd-
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 perl
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 plymouth
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 pm
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 polkit-1
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 ppp
-rw-r--r--  1 1023 1023   653 Feb 12 17:57 profile
drwxr-xr-x  2 1023 1023  4096 Feb 16 21:35 profile.d
-rw-r--r--  1 1023 1023  3144 Feb 12 17:57 protocols
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 python3
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 python3.12
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 rc0.d
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 rc1.d
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 rc2.d
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 rc3.d
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 rc4.d
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 rc5.d
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 rc6.d
-rwxrwxr-x  1 1023 1023   348 Feb 12 17:57 rc.local
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 rcS.d
-rw-r--r--  1 1023 1023  1787 Feb 12 17:57 request-key.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 request-key.d
lrwxrwxrwx  1 1023 1023    37 Feb 12 17:57 resolv.conf -> /run/systemd/resolve/stub-resolv.conf
lrwxrwxrwx  1 1023 1023    13 Feb 12 17:57 rmt -> /usr/sbin/rmt
-rw-r--r--  1 1023 1023   911 Feb 12 17:57 rpc
-rw-r--r--  1 1023 1023  1213 Feb 12 17:57 rsyslog.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 rsyslog.d
-rw-r--r--  1 1023 1023  3663 Feb 12 17:57 screenrc
-rw-rw-r--  1 1023 1023     8 Feb 12 17:57 securetty
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 security
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 selinux
-rw-r--r--  1 1023 1023 12813 Feb 12 17:57 services
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 sgml
-rw-r-----  1 1023 1023   972 Feb 16 21:32 shadow
-rw-r-----  1 1023 1023   873 Feb 12 17:57 shadow-
-rw-r--r--  1 1023 1023   183 Feb 12 17:57 shells
drwxr-xr-x  3 1023 1023  4096 Feb 16 21:36 skel
-rw-r--r--  1 1023 1023  6136 Feb 12 17:57 smartd.conf
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 smartmontools
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 ssh
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 ssl
-rw-r--r--  1 1023 1023    19 Feb 12 17:57 subgid
-rw-r--r--  1 1023 1023     0 Feb 12 17:57 subgid-
-rw-r--r--  1 1023 1023    19 Feb 12 17:57 subuid
-rw-r--r--  1 1023 1023     0 Feb 12 17:57 subuid-
-rw-r--r--  1 root root  4343 Feb 12 17:57 sudo.conf
-r--r-----  1 root root  1810 Feb 16 21:27 sudoers
drwxr-xr-x  2 root root  4096 Feb 12 17:57 sudoers.d
-rw-r--r--  1 1023 1023  9804 Feb 12 17:57 sudo_logsrvd.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 supercat
-rw-r--r--  1 1023 1023  3608 Feb 12 17:57 sysctl.conf
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 sysctl.d
drwxr-xr-x  6 1023 1023  4096 Feb 12 17:48 systemd
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 terminfo
-rw-r--r--  1 1023 1023    14 Feb 12 17:57 timezone
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 tmpfiles.d
-rw-r--r--  1 1023 1023  1260 Feb 12 17:57 ucf.conf
drwxr-xr-x  4 1023 1023  4096 Feb 12 17:57 udev
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 ufw
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 update-motd.d
lrwxrwxrwx  1 1023 1023    16 Feb 12 17:57 vconsole.conf -> default/keyboard
-rw-r--r--  1 1023 1023  6548 Feb 12 17:57 vnstat.conf
lrwxrwxrwx  1 1023 1023    23 Feb 12 17:57 vtrgb -> /etc/alternatives/vtrgb
-rw-r--r--  1 1023 1023  4942 Feb 12 17:57 wgetrc
drwx------  2 1023 1023  4096 Feb 12 17:57 wireguard
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 wpa_supplicant
drwxr-xr-x  5 1023 1023  4096 Feb 12 17:57 X11
-rw-r--r--  1 1023 1023   681 Feb 12 17:57 xattr.conf
drwxr-xr-x  3 1023 1023  4096 Feb 12 17:57 xdg
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 xml
drwxr-xr-x  2 1023 1023  4096 Feb 12 17:57 zsh

@zeroxia zeroxia changed the title N1 armbian-install 以后配置文件owner都是1023 N1 armbian-install 以后rootfs里的文件owner都是1023 Feb 16, 2025
@zeroxia
Copy link
Author

zeroxia commented Feb 16, 2025

网上说是因为插入了N1的安卓系统导致的。

https://www.bonuscloud.club/viewtopic.php?t=205

@ophub
Copy link
Owner

ophub commented Feb 19, 2025

不要把armbian系统的u盘插入安卓系统下,先断电,插u盘,插电从usb启动

你这个u盘的系统已经被篡改了,重新刷u盘吧

@MortalM
Copy link

MortalM commented Feb 19, 2025

不要把armbian系统的u盘插入安卓系统下,先断电,插u盘,插电从usb启动

你这个u盘的系统已经被篡改了,重新刷u盘吧

大佬牛逼,这两天正准备刷n1改成大佬的op,感谢楼主和大佬~

@yicheng42
Copy link

不要把armbian系统的u盘插入安卓系统下,先断电,插u盘,插电从usb启动

你这个u盘的系统已经被篡改了,重新刷u盘吧

现在系统有什么问题?我买了一个n1,打算过几天刷,方便问一下,你那边有什么中国联系方式?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants