Notices


Reply
Thread Tools
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#21
Originally Posted by Spenc3 View Post
um.. try
sudo apt-get install --reinstall openssh-server

I'm just throwing it out there :P
Without the sudo .
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 472 | Thanked: 442 times | Joined on Sep 2007
#22
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.
__________________
If you don't know how to check your N900's uptime, you probably shouldn't own it.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#23
ls -al /etc/ | grep passwd
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 472 | Thanked: 442 times | Joined on Sep 2007
#24
Originally Posted by fatalsaint View Post
ls -al /etc/ | grep passwd
The passwd file exists. What do you want to know about it?
__________________
If you don't know how to check your N900's uptime, you probably shouldn't own it.
 
Posts: 472 | Thanked: 442 times | Joined on Sep 2007
#25
-rw-r--r-- 1 root root 1003 Jan 13 10:27 /etc/passwd
__________________
If you don't know how to check your N900's uptime, you probably shouldn't own it.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#26
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.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following User Says Thank You to fatalsaint For This Useful Post:
Posts: 472 | Thanked: 442 times | Joined on Sep 2007
#27
there is a "passwd. lock" (yes, with the space)

Not sure how to remove it
__________________
If you don't know how to check your N900's uptime, you probably shouldn't own it.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#28
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.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following 2 Users Say Thank You to fatalsaint For This Useful Post:
Shaichico's Avatar
Posts: 80 | Thanked: 8 times | Joined on Nov 2009 @ Stockholm (formally Amsterdam, London)
#29
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?
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#30
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?
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following 2 Users Say Thank You to fatalsaint For This Useful Post:
Reply

Thread Tools

 
Forum Jump


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