maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Need help cleaning up OpenSSH server install. (https://talk.maemo.org/showthread.php?t=40344)

fatalsaint 2010-01-13 18:16

Re: Need help cleaning up OpenSSH server install.
 
Quote:

Originally Posted by Spenc3 (Post 468834)
um.. try
sudo apt-get install --reinstall openssh-server

I'm just throwing it out there :P

Without the sudo ;).

Laughingstok 2010-01-13 18:28

Re: Need help cleaning up OpenSSH server install.
 
Alright, performed a command line install using --reinstall.

It pulled the deb, asked me for a password, but then said:

chpasswd: can't lock password file.

Then it created some SSH keys.
Then said:

useradd: unable to lock password file

Afterwards, I tried to ssh localhost again and failed. Doesn't appear to be working still.

fatalsaint 2010-01-13 19:39

Re: Need help cleaning up OpenSSH server install.
 
ls -al /etc/ | grep passwd

Laughingstok 2010-01-13 19:54

Re: Need help cleaning up OpenSSH server install.
 
Quote:

Originally Posted by fatalsaint (Post 468979)
ls -al /etc/ | grep passwd

The passwd file exists. What do you want to know about it?

Laughingstok 2010-01-13 19:55

Re: Need help cleaning up OpenSSH server install.
 
-rw-r--r-- 1 root root 1003 Jan 13 10:27 /etc/passwd

fatalsaint 2010-01-13 20:22

Re: Need help cleaning up OpenSSH server install.
 
there should be a few .lock files in there... shadow.lock, passwd.lock, and group.lock.

They need to be removed...

Short of this... check your root filesize usage... it might be full.

Laughingstok 2010-01-13 21:53

Re: Need help cleaning up OpenSSH server install.
 
there is a "passwd. lock" (yes, with the space)

Not sure how to remove it

fatalsaint 2010-01-13 21:56

Re: Need help cleaning up OpenSSH server install.
 
It has a space?? Wow FUBAR'd.

Code:

rm /etc/passwd.\ lock
Also:
Code:

ls -al /etc/ | grep lock
If there are any of the others.. remove them too. After you remove it.. uninstall openssh-server and install it again.

Shaichico 2010-01-13 23:32

Re: Need help cleaning up OpenSSH server install.
 
Hi I have a similar problem however I have the following in /etc/

(passwd-) this is -rw-------
(passwd) this is -rw-r--r--

and I can't SSH into the N900 from my linux machine

the SSH daemon is up and able to bring the RSA fingerprint and not really sure where its going wrong.

Edit: Should I remove these and reinstall?

fatalsaint 2010-01-14 00:13

Re: Need help cleaning up OpenSSH server install.
 
Nono.. don't remove the passwd file ;). That's quite important.

The passwd- can be ignored as well.

Your problem does not appear to be the same... can you run:
Code:

ssh root@localhost
From your N900 and connect?


All times are GMT. The time now is 10:51.

vBulletin® Version 3.8.8