![]() |
2010-04-29
, 14:10
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#2
|
![]() |
2010-04-30
, 06:45
|
Posts: 38 |
Thanked: 2 times |
Joined on Apr 2010
@ Novosibirsk, Russia
|
#3
|
I have problem with SBRSH.
On my Host PC file .sbrsh have this lines:
FREMANTLE_ARMEL 192.168.2.15:1202
ssh grinch@192.168.2.14:/scratchbox/users/grinch/targets/FREMANTLE_ARMEL/ / rw,nonempty,allow_other,port=22
ssh grinch@192.168.2.14:/scratchbox/users/grinch/home/grinch/ /home/grinch rw,nonempty,allow_other,port=22
bind /tmp /tmp
bind /dev /dev
bind /dev/pts /dev/pts
bind /proc /proc
bind /sys /sys
bind /var /var
On tablet ip 192.168.2.14 is allowed in /etc/sbrshd.conf
ssh is configured to passwordless mode.
Next I execute on Host PC command (not in scratchbox) 'sbrsh /bin/sh'.
But I find myself not in mounted scratchbox filesystem, but in common tablet filesystem.
Log /var/log/sbrshd.log:
DAEMON New connection
DAEMON Client IP address is 192.168.2.14
DAEMON Sending VERSION packet
DAEMON Reading client's VERSION packet
DAEMON Reading USER packet
DAEMON Searching for host 192.168.2.14 in /etc/sbrshd.conf
DAEMON Found matching line: 192.168.2.14
DAEMON Sending AUTH packet
DAEMON Receiving SANDBOX packet
DAEMON Receiving TARGET packet
DAEMON Receiving MOUNTS packet
DAEMON Receiving ARGS packet
DAEMON Receiving ENVIRON packet
DAEMON Receiving IDS packet
DAEMON Receiving UMASK packet
DAEMON Receiving WINSIZE packet
DAEMON Received COMMAND packet
DAEMON Client sandbox disabled(0), enabled(1), server(2): 2
DAEMON Perfoming server sandbox decision: 1
HANDLER Creating command process in a pty
COMMAND Changing gid to 1000
COMMAND Setting 14 supplementary gids
COMMAND Changing uid to 1000
COMMAND Executing command: /bin/sh
DAEMON Checking for expired mounts
AEMON Waiting for connection
HANDLER Managing process 3601