From ceddbd2668b4696288c0c34a329722ae42d36fa8 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 26 May 2020 23:12:36 -0400 Subject: [PATCH] dropping retired get_x_auth script also didn't seem to still be working. --- scripts/security/get_x_auth.sh | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 scripts/security/get_x_auth.sh diff --git a/scripts/security/get_x_auth.sh b/scripts/security/get_x_auth.sh deleted file mode 100644 index c9f2ea81..00000000 --- a/scripts/security/get_x_auth.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# This script finds the X window system authorization info that's already -# been established for this display. The information can then be used to -# set the authorization for a new su session, which keeps X secure as -# well as allowing the user to run X programs on the original display. - -# make sure we have some information to return in the first place. -if [ ! -z "$DISPLAY" ]; then - disp_search=$(echo $DISPLAY | sed -e 's/.*:\([0-9]*\).*/:\1/') -#echo disp search is $disp_search - temp_auth=$(xauth list | grep -i $HOSTNAME | grep $disp_search) -#echo temp auth is $temp_auth - temp_auth2=$(echo $temp_auth | sed -e "s/$HOSTNAME/; xauth add $HOSTNAME/g" ) -#echo temp auth2 is $temp_auth2 - export X_auth_info="echo setting X permissions $temp_auth2" -#echo $X_auth_info - -fi - -- 2.34.1