DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-04-13 07:32:30

mohbandy
New member
Registered: 2011-04-13
Posts: 3

ssh only works for root user

When logging into my 323 I don't want to send the root credentials across the web so i would like to be able to ssh in with a non-admin account.  The problem I am having is that if i ssh with any other user I can successfully login but the command prompt is not responsive

Code:

BusyBox v1.00-pre1 (2009.05.07-06:36+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

ls
ps
pwd

Then a ctrl+c will close the putty window.

I am assuming it is some privilege settings or lack thereof, I just don't know what to change.

Any hep would be appreciated, THANKS!

Offline

 

#2 2011-04-13 07:52:43

dhub
Member
Registered: 2011-01-01
Posts: 112

Re: ssh only works for root user

At the hung prompt enter 5784468 that's hardcoded into the dlink shell...

Offline

 

#3 2011-04-13 15:13:55

mohbandy
New member
Registered: 2011-04-13
Posts: 3

Re: ssh only works for root user

Thanks for the quick response!

That does fix my issue, is there any way I can get around having to memorize 5784468? Thats inconvenient...

I read the Shells section of http://dns323.kood.org/howto:ffp and tried to replace /ffp/bin/sh with /ffp/bin/bash but it didn't make a difference. Reading throught he directions I think the only command I needed to execute to make this happen was

Code:

chsh -s /ffp/bin/bash
store-passwd.sh

store-passwd.sh' to make the changes permanent.

am I mistaken?

Offline

 

#4 2011-04-13 16:15:48

dhub
Member
Registered: 2011-01-01
Posts: 112

Re: ssh only works for root user

chsh needs the userid to change the shell for:
chsh -s /ffp/bin/bash userid

Offline

 

#5 2011-04-14 06:55:29

mohbandy
New member
Registered: 2011-04-13
Posts: 3

Re: ssh only works for root user

You get a gold star, thank you!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB