Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh & config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
InAt!QuE
Apprentice
Apprentice


Joined: 02 Jan 2004
Posts: 257
Location: The Netherlands

PostPosted: Tue Jan 20, 2004 10:31 am    Post subject: ssh & config Reply with quote

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
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Tue Jan 20, 2004 12:25 pm    Post subject: Reply with quote

maybe it's the perms of the tty?
Back to top
View user's profile Send private message
InAt!QuE
Apprentice
Apprentice


Joined: 02 Jan 2004
Posts: 257
Location: The Netherlands

PostPosted: Tue Jan 20, 2004 4:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Wed Jan 21, 2004 9:41 am    Post subject: Reply with quote

Great! Though I hate it when the "solution" to a linux problem is to reboot. Too windows-like.
Back to top
View user's profile Send private message
InAt!QuE
Apprentice
Apprentice


Joined: 02 Jan 2004
Posts: 257
Location: The Netherlands

PostPosted: Wed Jan 21, 2004 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum