[Share Experiences] 如何在终端命令切换到另一用户的图形登陆界面
Tofloor
poster avatar
andktan
deepin
2022-03-09 01:21
Author

当前用户为a (管理员用户)

另一用户为b (标准用户)

1、如何在终端里用一条命令实现由a转换到b的图形登陆界面(注意不是在终端里的登陆界面)

2、由b转a呢?

(补充:

我是说在a用户的图形界面打开终端,输入一行命令后,会自动锁屏并进入b用户输入密码的图形登陆界面

,有点表述不清了我。😄)

Reply Favorite View the author
All Replies
zijinyise
deepin
2022-03-09 01:56
#1

问题太高端了sweat

Reply View the author
jjcui8595
deepin
2022-03-09 02:08
#2

好像不能同时打开两个图形界面吧

Reply View the author
andktan
deepin
2022-03-09 03:09
#3
jjcui8595

好像不能同时打开两个图形界面吧

我是说在a用户的图形界面打开终端,输入一行命令后,会自动锁屏并进入b用户输入密码的图形登陆界面

,有点表述不清了我。😄

Reply View the author
andktan
deepin
2022-03-09 03:13
#4
zijinyise

问题太高端了sweat

这个真的很高端么,我还怕别人笑话我不懂呢

Reply View the author
liwl
deepin
2022-03-09 04:11
#5

很简单啊,注销就可以了,dde-lock看看参数,注销的

Reply View the author
Maicss
deepin
2022-03-09 04:57
#6

可以用ctrl+alt+fn切换不同的tty,然后登陆不同用户的图形界面(我没试过,不知道有没有问题)

Reply View the author
andktan
deepin
2022-03-09 05:29
#7
liwl

很简单啊,注销就可以了,dde-lock看看参数,注销的

dde-lock -l 可以锁屏,只是到了当前用户输密码的界面,

但怎么能自动切换到另一个用户输密码的界面呢

Reply View the author
andktan
deepin
2022-03-09 05:30
#8
Maicss

可以用ctrl+alt+fn切换不同的tty,然后登陆不同用户的图形界面(我没试过,不知道有没有问题)

这个不是我需要的

Reply View the author
jjcui8595
deepin
2022-03-09 06:22
#9

sudo pkill -kill -u username 可以注销当前用户并回到登录界面,但另一个用户还要点击选择

Reply View the author
andktan
deepin
2022-03-09 06:33
#10
jjcui8595

sudo pkill -kill -u username 可以注销当前用户并回到登录界面,但另一个用户还要点击选择

不想注销,只是锁屏后转到另一个用户的登陆界面😂

Reply View the author
lcw0268
deepin
2022-03-09 19:19
#11
It has been deleted!
andktan
deepin
2022-03-09 22:33
#12
lcw0268 It has been deleted!

thanks

Reply View the author
enforcee
deepin
2022-03-10 01:19
#13

dm-tool switch-to-greeter

Reply View the author
andktan
deepin
2022-03-10 17:17
#14
enforcee

dm-tool switch-to-greeter

谢谢提供这个命令,但是实现不了,也试了dm-tool switch-to-user,但是也只能到锁屏界面,达不到切换的目的

Reply View the author
HualetWang
deepin
2022-03-10 20:28
#15

chvt 应该可以,在lightdm体系下,不同的登陆用户界面是在不同的tty,你知道他是哪个tty,用chvt命令过去就行。

Reply View the author
andktan
deepin
2022-03-11 00:08
#16
HualetWang

chvt 应该可以,在lightdm体系下,不同的登陆用户界面是在不同的tty,你知道他是哪个tty,用chvt命令过去就行。

还需要知道ttyx,不好办

Reply View the author