File: su1

package info (click to toggle)
hxtools 20201116-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,696 kB
  • sloc: ansic: 5,074; perl: 3,589; cpp: 2,152; sh: 1,610; asm: 173; makefile: 153
file content (11 lines) | stat: -rwxr-xr-x 260 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

if [[ -z "$XAUTHORITY" ]]; then
	export XAUTHORITY="$HOME/.Xauthority";
fi;

exec /usr/bin/sudo -H -u root -- /bin/bash -c \
	"export DISPLAY=$DISPLAY;
	export XAUTHORITY=$XAUTHORITY;
	export LC_MESSAGES=$HX_LC_MESSAGES;
	exec /bin/bash --login";