Local ubuntu desktop cannot login after opened xrdp session
up vote
0
down vote
favorite
i have UBUNTU 18.04 and xrdp 0.9.5
i can login directly to local desktop after boot.
if i logout, i still can login via xrdp.
otherwise, if xrdp session has opened, even if i closed it, i cannot login to desktop locally, i think xrdp session is blocking it. i need to restart the machine so i can login locally. how to close xrdp session?
when i tried to login locally , the log says :
Jul 10 09:34:55 gdm-password]: pam_unix(gdm-password:session): session opened for user superadmin by (uid=0)
Jul 10 09:34:55 systemd-logind[879]: New session 3 of user superadmin.
Jul 10 09:34:57 gdm-password]: pam_unix(gdm-password:session): session closed for user superadmin
Jul 10 09:34:57 systemd-logind[879]: Removed session 3.
Jul 10 09:35:01 CRON[2485]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 10 09:35:01 CRON[2485]: pam_unix(cron:session): session closed for user root
restart the machine is the only way right now, please help. Thanks in advance.
UPDATE
after some trial and error, and referenced to @Sylla suggestion (thank you), i found that not only xrdp process to kill, but also xOrg
7313 ? 00:00:02 Xorg
7325 ? 00:00:00 xrdp-chansrv
after that, i can now login locally.
now the next question is, is there any chance i could make it automatically kill the processes after i close remote desktop?
login remote-desktop xrdp
add a comment |
up vote
0
down vote
favorite
i have UBUNTU 18.04 and xrdp 0.9.5
i can login directly to local desktop after boot.
if i logout, i still can login via xrdp.
otherwise, if xrdp session has opened, even if i closed it, i cannot login to desktop locally, i think xrdp session is blocking it. i need to restart the machine so i can login locally. how to close xrdp session?
when i tried to login locally , the log says :
Jul 10 09:34:55 gdm-password]: pam_unix(gdm-password:session): session opened for user superadmin by (uid=0)
Jul 10 09:34:55 systemd-logind[879]: New session 3 of user superadmin.
Jul 10 09:34:57 gdm-password]: pam_unix(gdm-password:session): session closed for user superadmin
Jul 10 09:34:57 systemd-logind[879]: Removed session 3.
Jul 10 09:35:01 CRON[2485]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 10 09:35:01 CRON[2485]: pam_unix(cron:session): session closed for user root
restart the machine is the only way right now, please help. Thanks in advance.
UPDATE
after some trial and error, and referenced to @Sylla suggestion (thank you), i found that not only xrdp process to kill, but also xOrg
7313 ? 00:00:02 Xorg
7325 ? 00:00:00 xrdp-chansrv
after that, i can now login locally.
now the next question is, is there any chance i could make it automatically kill the processes after i close remote desktop?
login remote-desktop xrdp
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
i have UBUNTU 18.04 and xrdp 0.9.5
i can login directly to local desktop after boot.
if i logout, i still can login via xrdp.
otherwise, if xrdp session has opened, even if i closed it, i cannot login to desktop locally, i think xrdp session is blocking it. i need to restart the machine so i can login locally. how to close xrdp session?
when i tried to login locally , the log says :
Jul 10 09:34:55 gdm-password]: pam_unix(gdm-password:session): session opened for user superadmin by (uid=0)
Jul 10 09:34:55 systemd-logind[879]: New session 3 of user superadmin.
Jul 10 09:34:57 gdm-password]: pam_unix(gdm-password:session): session closed for user superadmin
Jul 10 09:34:57 systemd-logind[879]: Removed session 3.
Jul 10 09:35:01 CRON[2485]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 10 09:35:01 CRON[2485]: pam_unix(cron:session): session closed for user root
restart the machine is the only way right now, please help. Thanks in advance.
UPDATE
after some trial and error, and referenced to @Sylla suggestion (thank you), i found that not only xrdp process to kill, but also xOrg
7313 ? 00:00:02 Xorg
7325 ? 00:00:00 xrdp-chansrv
after that, i can now login locally.
now the next question is, is there any chance i could make it automatically kill the processes after i close remote desktop?
login remote-desktop xrdp
i have UBUNTU 18.04 and xrdp 0.9.5
i can login directly to local desktop after boot.
if i logout, i still can login via xrdp.
otherwise, if xrdp session has opened, even if i closed it, i cannot login to desktop locally, i think xrdp session is blocking it. i need to restart the machine so i can login locally. how to close xrdp session?
when i tried to login locally , the log says :
Jul 10 09:34:55 gdm-password]: pam_unix(gdm-password:session): session opened for user superadmin by (uid=0)
Jul 10 09:34:55 systemd-logind[879]: New session 3 of user superadmin.
Jul 10 09:34:57 gdm-password]: pam_unix(gdm-password:session): session closed for user superadmin
Jul 10 09:34:57 systemd-logind[879]: Removed session 3.
Jul 10 09:35:01 CRON[2485]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 10 09:35:01 CRON[2485]: pam_unix(cron:session): session closed for user root
restart the machine is the only way right now, please help. Thanks in advance.
UPDATE
after some trial and error, and referenced to @Sylla suggestion (thank you), i found that not only xrdp process to kill, but also xOrg
7313 ? 00:00:02 Xorg
7325 ? 00:00:00 xrdp-chansrv
after that, i can now login locally.
now the next question is, is there any chance i could make it automatically kill the processes after i close remote desktop?
login remote-desktop xrdp
login remote-desktop xrdp
edited Jul 12 at 3:11
asked Jul 11 at 3:22
Asule
14
14
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
1) First solution:
ps -u your_username | grep xrdp
will give you the process id.
You can then
kill -9 pid_number
pid refers to your xrdp process ID.
2) Second solution
If you want to close xrdp session, you can use this command
/etc/init.d/xrdp stop
And if you decide to use your xrdp:
/etc/init.d/xrdp start
To check which status you have:
/etc/init.d/xrdp status
i tried your suggestion: but$ sudo xrdp status Unknown Parameter xrdp -h for help
not recognizing status parameter$ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv $ kill -9 1818 $ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv <defunct>
i'm still logged in xrdp, even can reconnect xrdp normally. any suggestion?
– Asule
Jul 11 at 9:51
Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
– Sylla
Jul 11 at 9:56
ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
– Asule
Jul 11 at 10:16
Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
– Sylla
Jul 11 at 12:01
well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
– Asule
Jul 12 at 1:16
add a comment |
up vote
0
down vote
accepted
i did not know that xrdp has two config file (xrdp.ini & sesman.ini).
so i created an issue in xrdp repo here
.
he told me that the configuration is in sesman.ini. the variable named KillDisconnected
do the job. but as i read it, it cannot have less than 60s.
hope this help someone.
thank you
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
1) First solution:
ps -u your_username | grep xrdp
will give you the process id.
You can then
kill -9 pid_number
pid refers to your xrdp process ID.
2) Second solution
If you want to close xrdp session, you can use this command
/etc/init.d/xrdp stop
And if you decide to use your xrdp:
/etc/init.d/xrdp start
To check which status you have:
/etc/init.d/xrdp status
i tried your suggestion: but$ sudo xrdp status Unknown Parameter xrdp -h for help
not recognizing status parameter$ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv $ kill -9 1818 $ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv <defunct>
i'm still logged in xrdp, even can reconnect xrdp normally. any suggestion?
– Asule
Jul 11 at 9:51
Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
– Sylla
Jul 11 at 9:56
ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
– Asule
Jul 11 at 10:16
Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
– Sylla
Jul 11 at 12:01
well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
– Asule
Jul 12 at 1:16
add a comment |
up vote
0
down vote
1) First solution:
ps -u your_username | grep xrdp
will give you the process id.
You can then
kill -9 pid_number
pid refers to your xrdp process ID.
2) Second solution
If you want to close xrdp session, you can use this command
/etc/init.d/xrdp stop
And if you decide to use your xrdp:
/etc/init.d/xrdp start
To check which status you have:
/etc/init.d/xrdp status
i tried your suggestion: but$ sudo xrdp status Unknown Parameter xrdp -h for help
not recognizing status parameter$ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv $ kill -9 1818 $ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv <defunct>
i'm still logged in xrdp, even can reconnect xrdp normally. any suggestion?
– Asule
Jul 11 at 9:51
Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
– Sylla
Jul 11 at 9:56
ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
– Asule
Jul 11 at 10:16
Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
– Sylla
Jul 11 at 12:01
well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
– Asule
Jul 12 at 1:16
add a comment |
up vote
0
down vote
up vote
0
down vote
1) First solution:
ps -u your_username | grep xrdp
will give you the process id.
You can then
kill -9 pid_number
pid refers to your xrdp process ID.
2) Second solution
If you want to close xrdp session, you can use this command
/etc/init.d/xrdp stop
And if you decide to use your xrdp:
/etc/init.d/xrdp start
To check which status you have:
/etc/init.d/xrdp status
1) First solution:
ps -u your_username | grep xrdp
will give you the process id.
You can then
kill -9 pid_number
pid refers to your xrdp process ID.
2) Second solution
If you want to close xrdp session, you can use this command
/etc/init.d/xrdp stop
And if you decide to use your xrdp:
/etc/init.d/xrdp start
To check which status you have:
/etc/init.d/xrdp status
answered Jul 11 at 8:49
Sylla
11
11
i tried your suggestion: but$ sudo xrdp status Unknown Parameter xrdp -h for help
not recognizing status parameter$ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv $ kill -9 1818 $ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv <defunct>
i'm still logged in xrdp, even can reconnect xrdp normally. any suggestion?
– Asule
Jul 11 at 9:51
Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
– Sylla
Jul 11 at 9:56
ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
– Asule
Jul 11 at 10:16
Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
– Sylla
Jul 11 at 12:01
well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
– Asule
Jul 12 at 1:16
add a comment |
i tried your suggestion: but$ sudo xrdp status Unknown Parameter xrdp -h for help
not recognizing status parameter$ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv $ kill -9 1818 $ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv <defunct>
i'm still logged in xrdp, even can reconnect xrdp normally. any suggestion?
– Asule
Jul 11 at 9:51
Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
– Sylla
Jul 11 at 9:56
ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
– Asule
Jul 11 at 10:16
Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
– Sylla
Jul 11 at 12:01
well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
– Asule
Jul 12 at 1:16
i tried your suggestion: but
$ sudo xrdp status Unknown Parameter xrdp -h for help
not recognizing status parameter $ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv $ kill -9 1818 $ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv <defunct>
i'm still logged in xrdp, even can reconnect xrdp normally. any suggestion?– Asule
Jul 11 at 9:51
i tried your suggestion: but
$ sudo xrdp status Unknown Parameter xrdp -h for help
not recognizing status parameter $ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv $ kill -9 1818 $ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv <defunct>
i'm still logged in xrdp, even can reconnect xrdp normally. any suggestion?– Asule
Jul 11 at 9:51
Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
– Sylla
Jul 11 at 9:56
Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
– Sylla
Jul 11 at 9:56
ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
– Asule
Jul 11 at 10:16
ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
– Asule
Jul 11 at 10:16
Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
– Sylla
Jul 11 at 12:01
Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
– Sylla
Jul 11 at 12:01
well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
– Asule
Jul 12 at 1:16
well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
– Asule
Jul 12 at 1:16
add a comment |
up vote
0
down vote
accepted
i did not know that xrdp has two config file (xrdp.ini & sesman.ini).
so i created an issue in xrdp repo here
.
he told me that the configuration is in sesman.ini. the variable named KillDisconnected
do the job. but as i read it, it cannot have less than 60s.
hope this help someone.
thank you
add a comment |
up vote
0
down vote
accepted
i did not know that xrdp has two config file (xrdp.ini & sesman.ini).
so i created an issue in xrdp repo here
.
he told me that the configuration is in sesman.ini. the variable named KillDisconnected
do the job. but as i read it, it cannot have less than 60s.
hope this help someone.
thank you
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
i did not know that xrdp has two config file (xrdp.ini & sesman.ini).
so i created an issue in xrdp repo here
.
he told me that the configuration is in sesman.ini. the variable named KillDisconnected
do the job. but as i read it, it cannot have less than 60s.
hope this help someone.
thank you
i did not know that xrdp has two config file (xrdp.ini & sesman.ini).
so i created an issue in xrdp repo here
.
he told me that the configuration is in sesman.ini. the variable named KillDisconnected
do the job. but as i read it, it cannot have less than 60s.
hope this help someone.
thank you
answered Jul 13 at 10:24
Asule
14
14
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1054063%2flocal-ubuntu-desktop-cannot-login-after-opened-xrdp-session%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown