Results 1 to 3 of 3

Thread: [Idea][Wayland] Run administrator session

  1. #1

    Default [Idea][Wayland] Run administrator session

    Wayland have restrictions to ran programs as root or other user. Way to solve this is add new program in menu, called run administrator session.

    This button will check environment variable, called prefered_admin_session and search for item with the same name belonging to specific for administration session path, for example /usr/graphical/sbin/Wayland_root. If user have some_program in prefered_admin_session environment variable, this button will start new Wayland session, which will have in env username and prefered_admin_session, so it could ask for admin password or password for current user. Once user provided correct password, it loads /user/graphical/sbin/Wayland_root/some_program.

    Additionally, starting new administrator session means, that:
    (1)clipboard content will be copy into new admin session
    (2) New window in user's wayland session will be displayed, with button called switch to administrator session (This button will switch onto VT with ran administrative session and synchronize clipboard; maybe it will asks for password again)
    (3) Each Wayland compositor, which is compatible with this solution, will display go to normal user session, making opposite action to second point
    (4) Some protocols can be written to communicate both normal and administrator session, like administrator session could display window from normal session and allow to use it, but with some restrictions.

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,671
    Blog Entries
    3

    Default Re: [Idea][Wayland] Run administrator session

    At present, I am using:
    Code:
    xhost +SI:localuser:root
    That allows the root user to run X sessions. I run that at a command line.

    In a Konsole window, I can use "su" to get a root command prompt. That does not require anything special, since Konsole itself is not running as root. After giving that "xhost" command above, it can start root sessions as needed. In any case, after giving that suggested command, you should be able to run Yast, which will start a root X session.

    As for administrator session -- I'm waiting for something to be integrated into openSUSE to deal with such issues. For the present, a root command prompt and Yast are sufficient for most of what I need.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: [Idea][Wayland] Run administrator session

    The concept of an Administrator is typically a User based security model like what you might find in SAMBA or LDAP, and not in a native Linux machine, although a common workaround is to deploy the "wheel group" as a kind of Administrators User Group.

    Seems to me that an enterprising person could write a short script that incorporates the ideas of both @Lachu and @nrickert to enable easy access to elevated Wayland X sessions, but should first be reviewed by someone knowledgeable about related security issues.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •