What do su - usrnm get? [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I will running some closed source programs in the current logging Konsole window by su - usrnm command, I know that'll share the desktop screen with the programs running under usrnm, not safe enough, and what other information will share to usrnm? like clipboard, etc...







share|improve this question














closed as unclear what you're asking by Wouter Verhelst, Jeff Schaller, Tomasz, cas, Romeo Ninov Jan 25 at 8:43


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 2




    I guess you should provide more details of this software.
    – Tomasz
    Jan 24 at 20:01










  • I worry that may leak my privacy...it's a proxy software. Running other software with it's listening port.
    – Boll19
    Jan 26 at 11:34














up vote
0
down vote

favorite












I will running some closed source programs in the current logging Konsole window by su - usrnm command, I know that'll share the desktop screen with the programs running under usrnm, not safe enough, and what other information will share to usrnm? like clipboard, etc...







share|improve this question














closed as unclear what you're asking by Wouter Verhelst, Jeff Schaller, Tomasz, cas, Romeo Ninov Jan 25 at 8:43


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 2




    I guess you should provide more details of this software.
    – Tomasz
    Jan 24 at 20:01










  • I worry that may leak my privacy...it's a proxy software. Running other software with it's listening port.
    – Boll19
    Jan 26 at 11:34












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I will running some closed source programs in the current logging Konsole window by su - usrnm command, I know that'll share the desktop screen with the programs running under usrnm, not safe enough, and what other information will share to usrnm? like clipboard, etc...







share|improve this question














I will running some closed source programs in the current logging Konsole window by su - usrnm command, I know that'll share the desktop screen with the programs running under usrnm, not safe enough, and what other information will share to usrnm? like clipboard, etc...









share|improve this question













share|improve this question




share|improve this question








edited Jan 24 at 20:00









Tomasz

8,04052560




8,04052560










asked Jan 24 at 12:56









Boll19

724




724




closed as unclear what you're asking by Wouter Verhelst, Jeff Schaller, Tomasz, cas, Romeo Ninov Jan 25 at 8:43


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as unclear what you're asking by Wouter Verhelst, Jeff Schaller, Tomasz, cas, Romeo Ninov Jan 25 at 8:43


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2




    I guess you should provide more details of this software.
    – Tomasz
    Jan 24 at 20:01










  • I worry that may leak my privacy...it's a proxy software. Running other software with it's listening port.
    – Boll19
    Jan 26 at 11:34












  • 2




    I guess you should provide more details of this software.
    – Tomasz
    Jan 24 at 20:01










  • I worry that may leak my privacy...it's a proxy software. Running other software with it's listening port.
    – Boll19
    Jan 26 at 11:34







2




2




I guess you should provide more details of this software.
– Tomasz
Jan 24 at 20:01




I guess you should provide more details of this software.
– Tomasz
Jan 24 at 20:01












I worry that may leak my privacy...it's a proxy software. Running other software with it's listening port.
– Boll19
Jan 26 at 11:34




I worry that may leak my privacy...it's a proxy software. Running other software with it's listening port.
– Boll19
Jan 26 at 11:34










1 Answer
1






active

oldest

votes

















up vote
1
down vote













If your distribution arranges for X11 GUI access across su - <username> (i.e. you can successfully start new GUI programs as the su'd user), then the program has full access to your session on the X11 display server. That means:



  • it can capture your keystrokes and mouse movements, even outside the program's visible windows if it wants to (it can open an invisible borderless full-screen window that passes all key/mouse events through to windows under it, and then snoop everything)

  • it has access to the GUI session's clipboard

  • if a program uses X11 properties to e.g. detect and communicate with other instances of itself, the closed source program can see and participate in that communication

Anything else depends on what X11 protocol extensions you're using, what desktop environment you're using, and other details.



If the closed-source program does not need a GUI, you can revoke its X11 access pretty easily, by doing these things after su'ing but before starting the closed-source program:



$ unset DISPLAY
$ unset XAUTHORITY
$ rm ~usrnm/.Xauthority


What remains is just a terminal session, similar to what you'd get by doing a



ssh -x -a usrnm@localhost





share|improve this answer




















  • ouch! It,s serious about my security, is there any easy tools to tell me which files is accessed by which program running under user:usrnm?
    – Boll19
    Jan 25 at 5:14

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













If your distribution arranges for X11 GUI access across su - <username> (i.e. you can successfully start new GUI programs as the su'd user), then the program has full access to your session on the X11 display server. That means:



  • it can capture your keystrokes and mouse movements, even outside the program's visible windows if it wants to (it can open an invisible borderless full-screen window that passes all key/mouse events through to windows under it, and then snoop everything)

  • it has access to the GUI session's clipboard

  • if a program uses X11 properties to e.g. detect and communicate with other instances of itself, the closed source program can see and participate in that communication

Anything else depends on what X11 protocol extensions you're using, what desktop environment you're using, and other details.



If the closed-source program does not need a GUI, you can revoke its X11 access pretty easily, by doing these things after su'ing but before starting the closed-source program:



$ unset DISPLAY
$ unset XAUTHORITY
$ rm ~usrnm/.Xauthority


What remains is just a terminal session, similar to what you'd get by doing a



ssh -x -a usrnm@localhost





share|improve this answer




















  • ouch! It,s serious about my security, is there any easy tools to tell me which files is accessed by which program running under user:usrnm?
    – Boll19
    Jan 25 at 5:14














up vote
1
down vote













If your distribution arranges for X11 GUI access across su - <username> (i.e. you can successfully start new GUI programs as the su'd user), then the program has full access to your session on the X11 display server. That means:



  • it can capture your keystrokes and mouse movements, even outside the program's visible windows if it wants to (it can open an invisible borderless full-screen window that passes all key/mouse events through to windows under it, and then snoop everything)

  • it has access to the GUI session's clipboard

  • if a program uses X11 properties to e.g. detect and communicate with other instances of itself, the closed source program can see and participate in that communication

Anything else depends on what X11 protocol extensions you're using, what desktop environment you're using, and other details.



If the closed-source program does not need a GUI, you can revoke its X11 access pretty easily, by doing these things after su'ing but before starting the closed-source program:



$ unset DISPLAY
$ unset XAUTHORITY
$ rm ~usrnm/.Xauthority


What remains is just a terminal session, similar to what you'd get by doing a



ssh -x -a usrnm@localhost





share|improve this answer




















  • ouch! It,s serious about my security, is there any easy tools to tell me which files is accessed by which program running under user:usrnm?
    – Boll19
    Jan 25 at 5:14












up vote
1
down vote










up vote
1
down vote









If your distribution arranges for X11 GUI access across su - <username> (i.e. you can successfully start new GUI programs as the su'd user), then the program has full access to your session on the X11 display server. That means:



  • it can capture your keystrokes and mouse movements, even outside the program's visible windows if it wants to (it can open an invisible borderless full-screen window that passes all key/mouse events through to windows under it, and then snoop everything)

  • it has access to the GUI session's clipboard

  • if a program uses X11 properties to e.g. detect and communicate with other instances of itself, the closed source program can see and participate in that communication

Anything else depends on what X11 protocol extensions you're using, what desktop environment you're using, and other details.



If the closed-source program does not need a GUI, you can revoke its X11 access pretty easily, by doing these things after su'ing but before starting the closed-source program:



$ unset DISPLAY
$ unset XAUTHORITY
$ rm ~usrnm/.Xauthority


What remains is just a terminal session, similar to what you'd get by doing a



ssh -x -a usrnm@localhost





share|improve this answer












If your distribution arranges for X11 GUI access across su - <username> (i.e. you can successfully start new GUI programs as the su'd user), then the program has full access to your session on the X11 display server. That means:



  • it can capture your keystrokes and mouse movements, even outside the program's visible windows if it wants to (it can open an invisible borderless full-screen window that passes all key/mouse events through to windows under it, and then snoop everything)

  • it has access to the GUI session's clipboard

  • if a program uses X11 properties to e.g. detect and communicate with other instances of itself, the closed source program can see and participate in that communication

Anything else depends on what X11 protocol extensions you're using, what desktop environment you're using, and other details.



If the closed-source program does not need a GUI, you can revoke its X11 access pretty easily, by doing these things after su'ing but before starting the closed-source program:



$ unset DISPLAY
$ unset XAUTHORITY
$ rm ~usrnm/.Xauthority


What remains is just a terminal session, similar to what you'd get by doing a



ssh -x -a usrnm@localhost






share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 25 at 0:12









telcoM

10.8k11132




10.8k11132











  • ouch! It,s serious about my security, is there any easy tools to tell me which files is accessed by which program running under user:usrnm?
    – Boll19
    Jan 25 at 5:14
















  • ouch! It,s serious about my security, is there any easy tools to tell me which files is accessed by which program running under user:usrnm?
    – Boll19
    Jan 25 at 5:14















ouch! It,s serious about my security, is there any easy tools to tell me which files is accessed by which program running under user:usrnm?
– Boll19
Jan 25 at 5:14




ouch! It,s serious about my security, is there any easy tools to tell me which files is accessed by which program running under user:usrnm?
– Boll19
Jan 25 at 5:14


Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)