OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: suruaZ on May 10, 2004, 12:57:43 am
-
Hi there,
I have a little problem with running of SSH on default Sharp ROM. It always tries to create .ssh folder on read-only /root
I tried to create link to /home/root/.ssh without luck.
My $HOME = /home/root and from the SSH docs appears it must use $HOME/.ssh folder for the work by default so I wonder why it looking for /root/.ssh ?
Is there a solution for this ROM?
Thanks in advance
suruaZ
SL-5500 Sharp ROM 2.38
-
Which OpenSSH package did you use? This one works fine for me: http://www.killefiz.de/zaurus/showdetail.php?app=1035 (http://www.killefiz.de/zaurus/showdetail.php?app=1035)
-
I use exactly the same package - OpenSSH 3.6.1p1, from this site (did you know other?).
Each time I log in it says \"Couldn\'t create /root/.ssh folder\" then after manual confirming that I trust the host connected it says \"Couldn\'t create file /root/.ssh/known-hosts\".
suruaZ
-
Are you sure that /root is read-only, and that the problem\'s not actually that you are running as zaurus and so don\'t have access to /root due to your not being the superuser?
-
Are you sure that /root is read-only
Yes, I\'m sure. As I understand from the FAQ everything that is not in /home are ROM and read-only. Also I have tried mkdir /root/.ssh and got the same - read only.
and that the problem\'s not actually that you are running as zaurus and so don\'t have access to /root due to your not being the superuser?
On the Sharp ROM 2.38 I have no options - I\'m root always.
suruaZ
-
/root is readonly on the Sharp ROMs, regardless of the version.
It might be a problem to do with the fact that the OpenSSH package you\'re using is for the Sharp 3.x ROMs and you\'re using a 2.x ROM.
-
Did you try changing the root entry in /etc/passwd?
Change the line:
root:x:0:0:root:/root:/bin/sh
to
root:x:0:0:root:/home/root:/bin/sh
While you\'re at it, change your default shell from /bin/sh to /bin/bash like this:
root:x:0:0:root:/home/root:/bin/bash
-
Thanks jackburton! This did the job!
What advantages bash over sh?
The only I see now is promt changed from sh# to bash#
Thanks again,
suruaZ
-
Thanks jackburton! This did the job!
What advantages bash over sh?
The only I see now is promt changed from sh# to bash#
Thanks again,
suruaZ
Bash is nicer :wink: *Things like better history and tab completion.
Also, some scripts/utils need the extensions in bash not available in plain old sh. Most linux distros have bash as default anyway.
I do it mainly for consistency across my linux platforms.