1、Ubuntu系统修改密码和用户名
终端 输入 修改root密码 su passwd root,提示输入密码,完成后重启系统即可,
终端 输入 修改用户密码 su passwd usename,提示输入密码,完成后重启系统即可,
修改用户,etc/passwd etc/group etc/shadow 和/home下的用户名即可
2、Linux,修改密码和用户名
终端 输入 修改root密码 su passwd root,提示输入密码,完成后重启系统即可,
终端 输入 修改用户密码 su passwd usename,提示输入密码,完成后重启系统即可,
修改用户,etc/passwd etc/group etc/shadow 和/home下的用户名即可
如果要将这些设置,每次烧录时保存,将四个拷贝出来替换filesystem下的文件。
/etc/group
etc# cat group
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:nvidia,syslog
tty:x:5:syslog
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:nvidia
fax:x:21:
voice:x:22:
cdrom:x:24:nvidia
floppy:x:25:nvidia
tape:x:26:
sudo:x:27:nvidia
audio:x:29:nvidia,pulse
dip:x:30:nvidia
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:nvidia,gdm,dsv_general,dsv_security,ZeekrNormal,ZeekrSecure
sasl:x:45:
plugdev:x:46:nvidia
staff:x:50:
games:x:60:
users:x:100:dsv_security
nogroup:x:65534:
nvidia:x:1000:
gdm:x:110:nvidia,gdm
render:x:108:nvidia
weston-launch:x:1010:nvidia
debug:x:1011:dsv_general,dsv_security,ZeekrNormal,ZeekrSecure
nvtimesync:x:1012:nvidia
tzvault:x:1013:ZeekrSecure,dsv_security
uss:x:1014:nvidia
nvfsicom:x:1015:nvidia
nvepl:x:1016:nvidia
systemd-timesync:x:101:
systemd-journal:x:102:
systemd-network:x:103:
systemd-resolve:x:104:
messagebus:x:105:
input:x:106:
kvm:x:107:
syslog:x:109:dsv_general,dsv_security,ZeekrNormal,ZeekrSecure
i2c:x:111:dsv_general,ZeekrNormal
pulse:x:112:
pulse-access:x:113:
ssh:x:114:
docker:x:115:
rdma:x:116:
netdev:x:117:
bluetooth:x:118:
geoclue:x:119:
scanner:x:120:
colord:x:121:
systemd-coredump:x:999:
ZeekrNormal:x:600:ZeekrNormal,ZeekrSecure,nvidia
ZeekrSecure:x:700:ZeekrSecure,nvidia
dsv_general:x:200:dsv_general,dsv_security,nvidia
dsv_security:x:201:ZeekrSecure,dsv_security,nvidia
/etc/passwd
etc# cat passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
_apt:x:100:65534::/nonexistent:/usr/sbin/nologin
nvidia:x:1000:1000:nvidia,,,:/home/nvidia:/bin/bash
gdm:x:110:110:gdm:/var/lib/gdm3:/bin/false
systemd-timesync:x:101:101:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin
systemd-network:x:102:103:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:103:104:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
messagebus:x:104:105::/nonexistent:/usr/sbin/nologin
syslog:x:105:109::/home/syslog:/usr/sbin/nologin
pulse:x:106:112:PulseAudio daemon,,,:/var/run/pulse:/usr/sbin/nologin
_rpc:x:107:65534::/run/rpcbind:/usr/sbin/nologin
statd:x:108:65534::/var/lib/nfs:/usr/sbin/nologin
sshd:x:109:65534::/run/sshd:/usr/sbin/nologin
geoclue:x:111:119::/var/lib/geoclue:/usr/sbin/nologin
colord:x:112:121:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin
systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin
ZeekrNormal:x:600:600::/home/ZeekrNormal:/usr/sbin/nologin
ZeekrSecure:x:700:700::/home/ZeekrSecure:/usr/sbin/nologin
dsv_general:x:200:200::/home/dsv_general:/usr/sbin/nologin
dsv_security:x:201:201::/home/dsv_security:/usr/sbin/nologin
root@ubuntu:/myproject/ipu04_soc_linux_6060/zeekr_cs1ebk/common/drive-linux/filesystem/targetfs/etc#
/etc/shadow
/etc# cat shadow
root:*:18474:0:99999:7:::
daemon:*:18474:0:99999:7:::
bin:*:18474:0:99999:7:::
sys:*:18474:0:99999:7:::
sync:*:18474:0:99999:7:::
games:*:18474:0:99999:7:::
man:*:18474:0:99999:7:::
lp:*:18474:0:99999:7:::
mail:*:18474:0:99999:7:::
news:*:18474:0:99999:7:::
uucp:*:18474:0:99999:7:::
proxy:*:18474:0:99999:7:::
www-data:*:18474:0:99999:7:::
backup:*:18474:0:99999:7:::
list:*:18474:0:99999:7:::
irc:*:18474:0:99999:7:::
gnats:*:18474:0:99999:7:::
nobody:*:18474:0:99999:7:::
_apt:*:18474:0:99999:7:::
nvidia:orbodDu2nUzL6:19386:0:99999:7:::
gdm:!:19386::::::
systemd-timesync:*:19386:0:99999:7:::
systemd-network:*:19386:0:99999:7:::
systemd-resolve:*:19386:0:99999:7:::
messagebus:*:19386:0:99999:7:::
syslog:*:19386:0:99999:7:::
pulse:*:19386:0:99999:7:::
_rpc:*:19386:0:99999:7:::
statd:*:19386:0:99999:7:::
sshd:*:19386:0:99999:7:::
geoclue:*:19386:0:99999:7:::
colord:*:19386:0:99999:7:::
systemd-coredump:!!:19243::::::
ZeekrNormal:!:19386:0:99999:7:::
ZeekrSecure:!:19386:0:99999:7:::
dsv_general:!:19386:0:99999:7:::
dsv_security:!:19386:0:99999:7:::