redarrow
Expert Member
This is really giving me a headache.. 
I have a simple linux box which I'm using as a server.
It's running Fedora 8 and does not use X, basically I just log in with ssh to make any system changes I need.
Now my big problem:
I'm trying to use it to run a Dc++ client like a server, I'm using "microdc2".
I need microdc2 to be automatically started when the system boots up, but I also want to be able to work on the microdc2 command line if I log in with ssh.
Here's what I want to do:
The system once booted, should start an instance of "screen" and within screen call microdc2. Screen must be run with my normal user privledges and not as root user.
I have tried adding "screen" to /etc/rc.d/rc.local
Basically I can get "screen" to run on startup as root user with no problems.
i.e., as an example adding "screen -d -m vim" to /etc/rc.d/rc.local will start an instance of screen and launch vim within this screen. I can then log in via ssh and access vim. But it's all as root user.
What I cannot seem to get right is to get screen to startup as a normal user.. I've tried "sudo -u <user> screen" and "su <user> -c screen" and even "screen sudo -u <user> screen" (running screen within screen).
Any help/ideas appreaciated..
Thanks
I have a simple linux box which I'm using as a server.
It's running Fedora 8 and does not use X, basically I just log in with ssh to make any system changes I need.
Now my big problem:
I'm trying to use it to run a Dc++ client like a server, I'm using "microdc2".
I need microdc2 to be automatically started when the system boots up, but I also want to be able to work on the microdc2 command line if I log in with ssh.
Here's what I want to do:
The system once booted, should start an instance of "screen" and within screen call microdc2. Screen must be run with my normal user privledges and not as root user.
I have tried adding "screen" to /etc/rc.d/rc.local
Basically I can get "screen" to run on startup as root user with no problems.
i.e., as an example adding "screen -d -m vim" to /etc/rc.d/rc.local will start an instance of screen and launch vim within this screen. I can then log in via ssh and access vim. But it's all as root user.
What I cannot seem to get right is to get screen to startup as a normal user.. I've tried "sudo -u <user> screen" and "su <user> -c screen" and even "screen sudo -u <user> screen" (running screen within screen).
Any help/ideas appreaciated..
Thanks