View previous topic :: View next topic |
Author |
Message |
InAt!QuE Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Cars/7.gif)
Joined: 02 Jan 2004 Posts: 257 Location: The Netherlands
|
Posted: Tue Jan 20, 2004 10:31 am Post subject: ssh & config |
|
|
Hi all,
I've some applications starting up at boot from the /etc/conf.d/local.start ..
Those apps will run from an <user> shell.
They start all with "screen -dmS app1 blabla" ..
When I type "screen -ls" logged in as root, I don't see the sockets.
Do I logon as <user> I see all 6 apps running in different screens...
I can easily re-attach my screens with "screen -r app1" when I'm logged on as <user>.
This all works on the machine locally.
When I'm connected as <user> through ssh, I can also see the screen woth "screen -ls" but when I try to re-attach the screens I got an error message:
Code: | Cannot open your terminal '/dev/pts/6' - please check. |
When I change the startup script so all apps will be running under root, and when I'm logged on as root through ssh. The "screen -r app1" works as it works locally.
So I guess to have the screen cmd working through ssh with a specified <user>, I need to setup some settings.. Am I right ?? If yes .. which settings and where to find them ?? _________________ ...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fleed l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1800640613415a758ba4ac3.png)
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Tue Jan 20, 2004 12:25 pm Post subject: |
|
|
maybe it's the perms of the tty? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
InAt!QuE Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Cars/7.gif)
Joined: 02 Jan 2004 Posts: 257 Location: The Netherlands
|
Posted: Tue Jan 20, 2004 4:51 pm Post subject: |
|
|
OMG you'll never believe it... I just wanted to check permissions on /dev/pty
So I tried login as root and apps running as root ...
afterwards I changed script so the apps are running from <user> again and now I can attach through ssh loggod on as <user> ...
I didn't change any setting at all ... Just rebooted Gentoo Machine once ...
Strange ... _________________ ...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fleed l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1800640613415a758ba4ac3.png)
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Wed Jan 21, 2004 9:41 am Post subject: |
|
|
Great! Though I hate it when the "solution" to a linux problem is to reboot. Too windows-like. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
InAt!QuE Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Cars/7.gif)
Joined: 02 Jan 2004 Posts: 257 Location: The Netherlands
|
Posted: Wed Jan 21, 2004 5:11 pm Post subject: |
|
|
fleed wrote: | Great! Though I hate it when the "solution" to a linux problem is to reboot. Too windows-like. |
I agree .. but I'm not really sure if it was the reboot which fixed the problem .. but I had to due the change of startup script. _________________ ...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|