LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-14-2016, 04:16 AM   #1
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Collision between GUI sessions in openSUSE 13.2 if program from another user run under first user GUI session.


Originally, after finding out that kdesu, followed by dolphin, did not work, I had posted at http://www.linuxquestions.org/questi...er-4175557111/ asking how I could open up a file manager window under a user other than the one the full GUI session belonged to.

For example, if I have the computer booted into a full KDE GUI desktop session under user joe, I had posted on that previous thread asking how I could open up in joe's KDE desktop session a file manager window running under user john and with the privileges of user john (instead of joe).

Ultimately, I got that first question answered, but then encountered another problem. If I have the computer booted into a full KDE GUI desktop session (on vt7) under user joe and open up a file manager window under user john in joe's KDE desktop session, and then open up a full KDE GUI desktop session (on vt8) under user john as shown in the attached screenshot, the two KDE GUI desktop sessions will collide. Specifically, john's desktop screen and keyboard input will show up on vt7 and will hide joe's desktop screen and keyboard input. However, some of john's windows (e.g. the logout confirmation screen) will still show up on vt8 and will only accept input on vt8. This collision will occur even if I close out the file manager window for john in joe's KDE desktop session before opening up a full KDE GUI desktop session under user john. If I already have a full KDE GUI desktop session under user john open before I open up a file manager window under john in joe's KDE desktop session, the collision will occur if I close out john's KDE desktop session and then open another KDE desktop session under john. This collision also occurs with user root. If I open up a file manager window under root using the command as setup by the openSUSE 13.2 install program and then open up a full KDE desktop session under root, the same collision between joe and root will occur. The only way to prevent the collision is to log joe out and then log joe back in again after having closed out the file manager window under john (or root) and before opening up any full KDE GUI desktop sessions under any other users.

Since the following sockets get replaced when joe logs out and then back in again:

Code:
/run/user/<UID joe>/ksocket-joe/kdeinit4__0
/run/user/<UID joe>/ksocket-joe/kdesud_:0
...I would like to know the names of the programs that are responsible for creating and removing those sockets, as well as the names of the RPM files those programs belong to.

My questions are:
  1. has this collision problem already been fixed and is it just a matter of upgrading some RPMs in order to get rid of this collision problem? If that is the case, could you please give me the full filenames for those RPMs so that I can manually upgrade them. The computer on which I have the openSUSE 13.2 installed does not connect to the internet so I will need to download and install those RPMs manually.
  2. if this collision problem hasn't been fixed, is there a workaround available where I can refresh those sockets, and anything else that might also need refreshing, such that I don't have to log joe out and back in again.
Attached Thumbnails
Click image for larger version

Name:	snapshot4.jpg
Views:	22
Size:	61.8 KB
ID:	22453  
 
Old 10-30-2016, 09:45 PM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638

Original Poster
Blog Entries: 1

Rep: Reputation: 52
From the openSUSE mailing list (opensuse@opensuse.org >> SLE <opensuse@opensuse.org>), when I put this question there, I received the following response:

Quote:
su (or kdesu) still leaves you running only one xorg stack owned by Joe, and it maps things
across as best it can, but it's still one xorg, one dbus and (I suspect) one of several other things.

This has never worked well in the same machine since kde3. (At least not under KDE4/5/Plasma).

It will try to make things work (poorly) that would have otherwise have failed outright if you were accessing via ssh from afar. (Or might have worked with no corruption in some cases).

I think some desktop environments handle this more elegantly, but KDE has leakage when you do it this way.
Having received nothing further on how I might be able to manually replicate the xorg stack, the dbus and the several other things, using a shell script, and getting the impression that the GUI collision problem is due to how the GUI infrastructure itself is structured as opposed to a bug that will in time be fixed, I concluded that any solution to this problem would at best be a workaround.

The following is the workaround that I put together:
  • create a new user that is a copy of john called john00
  • create a new group called john containing only users john and john00 and make that group the default group for both users john and john00
  • Setup one specific folder (e.g. workspace) under /home/john that will be used by both users john and john00
  • Set the file permissions for workspace as follows:
    Code:
    setfacl -d -m g::rwx /home/john/workspace
    setfacl -d -m o::rx /home/john/workspace
    ...so that any new files and folders under workspace by default are created to give the group john the same permissions as either user john or user john00

It is not perfect, however. If, from within user joe's full GUI KDE session, a file manager is brought up under john00 and a folder containing other files and folders is copied from joe to john00, only the folders themselves get the proper permissions. All files contained in that folder and its subfolders keep the permissions they had under joe. See http://www.linuxquestions.org/questi...folder-605129/ for details on the setfacl tip that I used here.
 
Old 02-19-2017, 12:09 AM   #3
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638

Original Poster
Blog Entries: 1

Rep: Reputation: 52
I have since found an actual solution to this problem as opposed to the workaround I posted previously: install and use the KDE3 desktop on openSUSE 13.2 and the collision between users as described above goes away. It also looks like the KDE3 desktop is available for openSUSE versions later than openSUSE 13.2 as well: https://en.opensuse.org/KDE3

Installation of the KDE3 desktop does not in any manner conflict with what has already been installed. It simply becomes another available session type to choose from when you first log in.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Making my GUI user a root user. LittlePenguin Linux - Newbie 31 08-22-2011 05:21 AM
Can't run gui (X) programs as root user nazdrowie Linux - General 25 12-02-2008 01:24 AM
Only root user can start a gui session landev Linux - Enterprise 6 02-12-2007 10:45 AM
Run prog as Root and display in user GUI? humbletech99 Linux - Security 5 06-20-2006 07:38 AM
start gui based program after user login shahidawan Linux - General 9 07-27-2005 08:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration