I'm trying to figure out a way in which I can boot TMUX under a user other than root, but automatically whenever Linux starts.
At least that's what I think I need. What I want is to be able to SSH into a remote box using the aforementioned user and type "tmux attach" and see the running program that was launched when TMUX was started.
The issue seems to be that I can't get TMUX started under the user of choice via the rc.local file (Linux CentOS 6.3), but instead it seems the TMUX session belongs to root instead. Normally not a problem, but I want to use SSH and don't wish to try to use SSH as root.
Is there a way to "switch" to a different user while executing the rc.local script? BTW, I do have TMUX booting and launching my program via script but I need to be logged in as that user in order to see the program using SSH.