Starting 'Screen' from rc.local as a user other than root
Hi,
I want to run BitchX on startup and have it load into a detached screen session so I can use it from a different terminal.
I created a BitchX entry in my normal users .screenrc file then logged in as root and tried "su -l <user> -c screen" but I keep getting errors about not being able to open tty1.
I also tried created a copy of the screen binary, chown'ing it to my normal user and using setuid. This gave me the same errors.
I am thinking of created a cron job for that user and using that to check every 30 mins or what not to see if BitchX is running and if not to start it up but this seems a really ugly way of doing it.
Any ideas?
|