XAUTH(1) X Version 11 XAUTH(1) (NAME) xauth - X (SYNOPSIS) xauth [ -f authfile ] [ -vqibn ] [ command arg ... ] (DESCRIPTION) xauth X . ( ). ( ) xauth . generate X . xauth X ( xdm startx) . (OPTIONS) xauth . ( -q -i) ( -qi) . -f authfile . xauth XAUTHORITY .Xauthority . -q xauth . xauth . -v xauth (verbose) ( ). xauth . -i xauth . xauth ( xdm xauth) . -b xauth . . -n xauth . -V, --version xauth . (COMMANDS) : add displayname protocolname hexkey . (octet) . . hexkey . MIT- MAGIC-COOKIE-1 . : magic cookie ps . "merge" ( ) . . generate displayname protocolname [trusted|untrusted] [timeout seconds] [group group-id] [data hexdata] add . displayname SECURITY . SECURITY . . MIT-MAGIC- COOKIE-1 . trusted . untrusted . SECURITY . untrusted . timeout . ( ) . . . group (application group) . application group . . data . . . hexdata hexkey add . . [n]extract filename displayname... . nextract ( ) . merge nmerge . (-) . [n]list [displayname...] ( ) . nlist nextract . add . [n]merge [filename...] . nmerge extract . . : ( sudo) ps . remove displayname... . source filename xauth . (#) . . info xauth . exit ( ) . (EOF) exit . quit . (interrupt character) . version xauth . help [string] ( ) . ? . (DISPLAY NAMES) add [n]extract [n]list [n]merge remove DISPLAY -display . ( ) . ( localhost) hostname/unix:displaynumber . (EXAMPLES) xauth : % xauth extract - $DISPLAY | ssh otherhost xauth merge - :0 MIT-MAGIC-COOKIE-1 . . % xauth generate :0 . (ENVIRONMENT) xauth : XAUTHORITY -f . HOME XAUTHORITY . (FILES) $HOME/.Xauthority XAUTHORITY . (SEE ALSO) X(7), Xsecurity(7), xhost(1), Xserver(1), xdm(1), startx(1), Xau(3). (BUGS) . MIT-MAGIC-COOKIE-1 . Kerberos . . (quoting) . (AUTHORS) Jim Fulton, MIT X Consortium xauth 1.1.5 2025-04-13 XAUTH(1)