Dear list,
I'm failing to terminate a session of a no longer existing NIS user.
User accounts are imported via NIS by the X2Go server ('lucas'). Home directories are mounted via NFS. Recently, an account ('prakti03') was deleted on the NIS server, and the corresponding home directory purged from the file server, while there was still a X2Go session running on the X2Go server.
root@lucas:~# x2golistsessions_root 31436|prakti03-56-1486112626_stDLXDE_dp32|56|lucas|S|2017-02-03T10:03:46|29549c54420137ca42be3121da1dddb4|10.10.6.48|61014|61015|2017-02-10T15:04:53|prakti03|4674671|61016|
root@lucas:~# /usr/bin/x2goterminate-session prakti03-56-1486112626_stDLXDE_dp32 root@lucas:~# echo $? 0 root@lucas:~# x2golistsessions_root 31436|prakti03-56-1486112626_stDLXDE_dp32|56|lucas|S|2017-02-03T10:03:46|29549c54420137ca42be3121da1dddb4|10.10.6.48|61014|61015|2017-02-10T15:04:53|prakti03|4676057|61016|
/var/log/auth.log is flooded with entries like this (roughly 70 blocks per minute):
Apr 2 07:00:00 lucas su[9223]: No passwd entry for user 'prakti03' Apr 2 07:00:00 lucas su[9223]: FAILED su for prakti03 by root Apr 2 07:00:00 lucas su[9223]: - ??? root:prakti03
How can I make X2Go 'terminate the session'? ('Session' in quotation marks, as there are no processes with the user's (numerical) UID running anymore.)
Thanks in advance,
Holger
Am 03.04.2017 um 16:07 schrieb Holger.Krause@med.uni-duesseldorf.de:
[...]
Question:
How can I make X2Go 'terminate the session'? ('Session' in quotation marks, as there are no processes with the user's (numerical) UID running anymore.)
Sounds like you will have to scrape the entry from the database.
Are you using the Postgres or the SQLite backend?
(run "grep backend /etc/x2go/x2gosql/sql" as root to find out)
-Stefan
-- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
Hi Stefan,
The backend seems to be the sqlite one:
root@lucas:~# grep backend /etc/x2go/x2gosql/sql backend=sqlite
'Scraping the entry from the database' doesn't sound too appealing to me. I had hoped for a '--force' option to x2goterminate-session or sth. similar. Creating an user account of the same name as the former NIS one locally, seems to be a workaround: The session is gone, no more messages in /var/log/auth.log.
Thank you, anyway!
Holger
Von: x2go-user [x2go-user-bounces@lists.x2go.org]" im Auftrag von "Stefan Baur [X2Go-ML-1@baur-itcs.de] Gesendet: Montag, 3. April 2017 16:26 An: x2go-user@lists.x2go.org Betreff: Re: [X2Go-User] Terminating a session of a no longer existent user fails (trying to su forever)
Am 03.04.2017 um 16:07 schrieb Holger.Krause@med.uni-duesseldorf.de:
[...]
Question:
How can I make X2Go 'terminate the session'? ('Session' in quotation marks, as there are no processes with the user's (numerical) UID running anymore.)
Sounds like you will have to scrape the entry from the database.
Are you using the Postgres or the SQLite backend?
(run "grep backend /etc/x2go/x2gosql/sql" as root to find out)
-Stefan
-- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243