Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: User without access to the graphic environment

  1. #1
    Join Date
    Jul 2015
    Location
    Brazil
    Posts
    23

    Default User without access to the graphic environment

    hello colleagues !!

    I am having difficulty with users:


    Leap installed in mode: minimal

    I found it on a website, to install minimum of a GUI lxde:

    zypper install xorg-x11 xorg-x11-server

    zypper install lxappearance lxappearance-lang lxappearance-obconf \
    lxcc lxde-common lxde-common-branding-openSUSE lxdm lxinput lxmenu-data \
    lxmusic lxmusic-lang lxpanel lxpanel-lang lxrandr \
    lxsession lxsession-edit lxshortcut lxtask lxterminal \
    lxterminal-lang menu-cache mtpaint nuoveXT2-icon-theme \
    obconf openal-soft openbox pcmanfm pcmanfm-lang

    echo "exec startlxde" > ~/.xinitrc

    It works great for root.

    I created a user:

    groupadd oinstall
    useradd -g oinstall -m oracle

    fatal server error:
    xf86OpenConsole: VT_activate failed: Operation not permitted
    ...
    VGA arbitration: cannot restore default device.
    xinit: giving up
    xinit: unable to connect to X server: Cannot assing requests address
    xinit failed. /usr/bin/Xorg is not setupid, maybe that's the reason?
    if so either use a displaay manager (strongly recommended) or adjust /etc/permissions.local
    and run "chkstat --system --set" afterwards


    what might be happening? (It works great for root.)
    Thank you!!

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    2,602

    Default Re: User without access to the graphic environment

    Hello.
    Is the following "pattern" package installed?
    patterns-openSUSE-minimal_base-conflicts
    If it is, the Release Notes mention that it needs to be removed before installing any further (big, recommended) packages.
    Regards

  3. #3

    Default Re: User without access to the graphic environment

    Quote Originally Posted by rogeriopaju View Post
    what might be happening? (It works great for root.)
    Well, read the message you got:
    Code:
    fatal server error:
    xf86OpenConsole: VT_activate failed: Operation not permitted
    ...
    VGA arbitration: cannot restore default device.
    xinit: giving up
    xinit: unable to connect to X server: Cannot assign requests address
    xinit failed. /usr/bin/Xorg is not setuid, maybe that's the reason?
    if so either use a display manager (strongly recommended) or adjust /etc/permissions.local
    and run "chkstat --system --set" afterwards
    "startx" doesn't work for a normal user in the default setup (since years). You need to make Xorg suid root, which is a security hole.
    Last edited by wolfi323; 26-Jan-2016 at 04:20.

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    2,602

    Default Re: User without access to the graphic environment

    Even for a minimal system, what are the reasons for wanting to start the GUI from a CLI?

    • Will Wayland allow this?

    Are there any reasons why a minimal Leap system which needs a GUI, should not use the systemd Display Manager service to initialise and start the user's login?

  5. #5

    Default Re: User without access to the graphic environment

    Quote Originally Posted by dcurtisfra View Post
    Even for a minimal system, what are the reasons for wanting to start the GUI from a CLI?

    • Will Wayland allow this?
    I suppose this question is irrelevant if you are using Xorg...

    But I guess there will be some way. After all, even with a display manager Wayland will have to be started somehow.

    Also, Xorg will not disappear any time soon.

    Are there any reasons why a minimal Leap system which needs a GUI, should not use the systemd Display Manager service to initialise and start the user's login?
    I suppose the main reason is to start a GUI as logged in user without having to enter your password again (i.e. convenience), and maybe root's too for starting a display manager. Not to mention that the user might not even know the root password...

  6. #6
    Join Date
    Jul 2015
    Location
    Brazil
    Posts
    23

    Default Re: User without access to the graphic environment

    Quote Originally Posted by dcurtisfra View Post
    Hello.
    Is the following "pattern" package installed?
    patterns-openSUSE-minimal_base-conflicts
    If it is, the Release Notes mention that it needs to be removed before installing any further (big, recommended) packages.
    Regards
    i did default minimal server...
    after install fineshed, i instaled patterns-openSUSE-lxde + xdm + graphic.target mode.

  7. #7
    Join Date
    Jul 2015
    Location
    Brazil
    Posts
    23

    Default Re: User without access to the graphic environment

    Quote Originally Posted by dcurtisfra View Post
    Even for a minimal system, what are the reasons for wanting to start the GUI from a CLI?

    • Will Wayland allow this?

    Are there any reasons why a minimal Leap system which needs a GUI, should not use the systemd Display Manager service to initialise and start the user's login?

    if the Wayland that controls this access, as I do I allow my users created have access to my lxde?

    tanks.

  8. #8

    Default Re: User without access to the graphic environment

    Quote Originally Posted by rogeriopaju View Post
    if the Wayland that controls this access, as I do I allow my users created have access to my lxde?
    The display manager (graphical login screen) is supposed to do that, not only with Wayland but also with Xorg.

    But nobody will force you to use Wayland in the forseeable future. It's not even (fully) supported by most desktops yet.

    As I already wrote, Xorg is not going to disappear any time soon.

    For allowing users to run "startx", see the error message.
    I.e. edit the file /etc/permissions.local and uncomment the last line about Xorg.
    Then run "chkstat --system --set" to apply the change.

    Xorg will be started as root then and work, even if you run "startx" as user.
    But be aware of the security risks involved...
    Last edited by wolfi323; 27-Jan-2016 at 08:07.

  9. #9
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    2,602

    Default Re: User without access to the graphic environment

    Quote Originally Posted by wolfi323 View Post
    I suppose the main reason is to start a GUI as logged in user without having to enter your password again (i.e. convenience), and maybe root's too for starting a display manager. Not to mention that the user might not even know the root password...
    Let us assume that the minimal system is a portable tool used to do something useful such as repairing the board-computer of a diesel automobile (no names mentioned but, I suspect that everyone knows who I mean! ):

    • Why on earth would the Mechatronics person (used to be known as an automobile mechanic) or whoever it is who is using the tool need to have access to a CLI?

    All of the current real world tools with minimal operating systems that I have seen have Touch-Screen GUIs which appear a few seconds after the tool is powered up.

    Yes, yes, many years ago especially in the Telephony business the tools used to configure the switching equipment were all CLI based with ITU-T or Deutsche Telekom specific command syntax (nothing like *NIX ever used); but that's all in the past and not the current situation.

  10. #10
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,769

    Default Re: User without access to the graphic environment

    If the target is a non-computer person such as a diesel mechanic you do not give them a general purpose user interface you provide a special built bullet proof interface on purpose built hardware. That is entirely different from a general purpose OS on general purpose hardware.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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