Skip to content

Possibility to use over Gnome? #262

@chamalis

Description

@chamalis

Hello,

I have a RHEL 8 server where users can connect via VNC, and I was trying to use lshell for some user.
Is there a workaround to support graphical environments?

I am getting this error in VNC logs when I restart the user's vnc instance:

Starting desktop session gnome

Xvnc TigerVNC 1.13.1 - built Nov  4 2024 02:27:14
Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12011000

Wed Mar 19 11:50:05 2025
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5960
 vncext:      created VNC server for screen 0
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
*** forbidden shell escape: "gnome-session"

I have allowed gnome-session in the conf file:

allowed         : ['ls','echo','ll','tail','mkdir', 'awk', 'cat', 'complete', 'cut', 'dirname', 'expr', 'gnome-terminal', 'id', 'pwd', 'uname', 'basename', 'compgen', 'cp', 'date', 'echo', 'grep', 'hostname', 'pk-command-not-found', 'readlink', 'reset', 'sed', 'tr', 'run_gnome_session', 'gnomesession', '**gnome-session**']

allowed_shell_escape : ['gnome-session', '/usr/bin/gnome-session', 'run_gnome_session', 'gnomesession']

I can work around shell escapes manually myself, but any ideas why adding gnome-session to allowed_shell_escape doesn't work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions