Skip to main content
Back to Commands
ServerN/A

server-access

Manage the access-control list for the tmux socket, so other users can attach read-only or read-write. The server's owner and root always have access. File-system permissions on the socket must still be set manually.

Synopsis

bash
tmux server-access [-adlrw] [user]

Options

FlagDescription
-aAdd the user to the access list
-dRemove the user from the access list
-rGive the user read-only access
-wGive the user read-write access
-lList the current access list

Examples

Allow alice to attach read-write

bash
tmux server-access -aw alice

Allow bob to attach read-only

bash
tmux server-access -ar bob

Revoke bob's access

bash
tmux server-access -d bob

Default Keybinding

N/A

Default prefix is Ctrl+b

Pro Tips

  • Pair-program safely by granting read-only access to a shared socket
  • Still set socket file permissions (e.g. via -S) so others can reach it