[GH-ISSUE #434] Use a global folder for ttyrec sessions #112

Open
opened 2026-05-07 00:19:05 +02:00 by BreizhHardware · 1 comment

Originally created by @AMBach1r1 on GitHub (Nov 28, 2023).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/434

Is there a way to change the folder where ttyrec save recorded sessions.
The default behavior is using the user home directory and ttyrec subdirectory.
I've tried to add "ttyrecAdditionalParameters": [/var/ttyrec] but without success.

Originally created by @AMBach1r1 on GitHub (Nov 28, 2023). Original GitHub issue: https://github.com/ovh/the-bastion/issues/434 Is there a way to change the folder where ttyrec save recorded sessions. The default behavior is using the user home directory and ttyrec subdirectory. I've tried to add `"ttyrecAdditionalParameters": [/var/ttyrec]` but without success.
Author
Owner

@speed47 commented on GitHub (Jan 19, 2024):

This is indeed in the home folder of the users, and in several places the code (and other scripts handling the lifecycle of the ttyrec files, such as encryption and push to a remote filer once encrypted) are expecting that.

I suppose that in your case, /var/ttyrec would be a mountpoint and you'd like to have all the ttyrec files under it, still keeping the hierarchy of /var/ttyrec/$USER/$IP/files.ttyrec ?

<!-- gh-comment-id:1900582740 --> @speed47 commented on GitHub (Jan 19, 2024): This is indeed in the home folder of the users, and in several places the code (and other scripts handling the lifecycle of the ttyrec files, such as encryption and push to a remote filer once encrypted) are expecting that. I suppose that in your case, `/var/ttyrec` would be a mountpoint and you'd like to have all the ttyrec files under it, still keeping the hierarchy of `/var/ttyrec/$USER/$IP/files.ttyrec` ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#112
No description provided.