Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Clipetty permission denided /dev/pts/3 #15

Closed
ztlevi opened this issue Mar 17, 2020 · 1 comment
Closed

[BUG] Clipetty permission denided /dev/pts/3 #15

ztlevi opened this issue Mar 17, 2020 · 1 comment
Assignees

Comments

@ztlevi
Copy link

ztlevi commented Mar 17, 2020

Describe the bug
On my company's desktop, there is a admin user controlled by my company called bobby.mcgee monitors users. /dev/pts/3 belongs to that user.

When I try to use clipetty, it pops

clipetty--emit: Opening output file: Permission denied, /dev/pts/3

Can we skip those output files does not belongs to the current user?

Notes: It probly will happen if two people ssh into a same machine.

To Reproduce

  1. Maybe create a file belongs to another admin user.
  2. ssh and use clipetty

Expected behavior
No permission error.

** System Info (please complete the following information):**

  • OS: LInux
  • Emacs Version: 26.3
  • Terminal program: Alacritty
  • Any terminal multiplexers in play: Tmux
  • Local or remote (over SSH)

Additional context
Add any other context about the problem here.

@spudlyo
Copy link
Owner

spudlyo commented Mar 26, 2020

Hi there,

Can you try adding the following to your .tmux.conf file?

set -ag update-environment "SSH_TTY"

Once you do that, detach your tmux session, log off, log back in, and then attach to your tmux session. I think that should fix it.

@ztlevi ztlevi closed this as completed Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants