linux passwd被改后图形界面进不了
发布网友
发布时间:2022-04-24 07:21
我来回答
共2个回答
热心网友
时间:2022-06-17 12:46
按理说,你修改了passwd文件文件后在系统会自动为你保存一个修改前的备份,这个备份的文件名是 /etc/passwd- ,你把修改后的“passwd”移开,把“/etc/passwd- ”中的“-”去掉就一切恢复原状了。
热心网友
时间:2022-06-17 12:46
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/sh
daemon:x:2:2:daemon:/sbin:/bin/sh
adm:x:3:4:adm:/var/adm:/bin/sh
lp:x:4:7:lp:/var/spool/lpd:/bin/sh
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/bin/sh
news:x:9:13:news:/var/spool/news:/bin/sh
uucp:x:10:14:uucp:/var/spool/uucp:/bin/sh
operator:x:11:0:operator:/var:/bin/sh
games:x:12:100:games:/usr/games:/bin/sh
nobody:x:65534:65534:Nobody:/:/bin/sh
messagebus:x:499:499:system user for dbus:/:/sbin/nologin
avahi:x:498:497:system user for avahi:/var/run/avahi-daemon:/bin/false
avahi-autoipd:x:497:496:system user for avahi:/var/lib/avahi-autoipd:/bin/false
usbmux:x:496:495:system user for usbmuxd:/proc:/sbin/nologin
rpm:x:495:494:system user for rpm:/var/lib/rpm:/bin/false
mysql:x:494:493:system user for mariadb:/var/lib/mysql:/bin/bash
vcsa:x:69:492:virtual console memory owner:/dev:/sbin/nologin
nscd:x:493:491:system user for glibc:/:/bin/false
rtkit:x:492:490:system user for rtkit:/proc:/sbin/nologin
hsqldb:x:96:96::/var/lib/hsqldb:/sbin/nologin
sshd:x:491:489:system user for openssh:/var/empty:/bin/true
apache:x:490:488:system user for webserver-base:/var/www:/bin/sh
rpc:x:489:487:system user for rpcbind:/var/lib/rpcbind:/sbin/nologin
rpcuser:x:488:483:system user for nfs-utils:/var/lib/nfs:/bin/false
ftp:x:487:482:system user for proftpd:/var/ftp:/bin/false
postgres:x:486:420:system user for postgresql9.1:/var/lib/pgsql:/bin/bash
mldonkey:x:485:418:system user for mldonkey:/var/lib/mldonkey:/bin/bash
vdr:x:484:417:system user for vdr:/var/lib/vdr:/bin/nologin
postfix:x:483:416:system user for postfix:/var/spool/postfix:/bin/false
ntp:x:482:414:system user for ntp:/etc/ntp:/bin/false
user:x:500:500:user:/home/user:/bin/bash
nginx:x:481:412:system user for nginx:/var/lib/nginx:/bin/false
uuidd:x:480:480:system user for util-linux:/var/lib/libuuid:/bin/false
polkitd:x:479:479:system user for polkit:/usr/lib/polkit-1:/sbin/nologin
sphinx:x:478:478:system user for sphinx:/var/lib/sphinx:/sbin/nologin
colord:x:477:477:system user for colord:/var/lib/colord:/usr/sbin/nologin
chrony:x:476:476:system user for chrony:/var/lib/chrony:/sbin/nologin