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 2008-09-18 17:44:32

puterboy
Member
Registered: 2008-09-18
Posts: 306

Turning on/off ftp server or changing user grp BREAKS telnet/ssh login

If you use the web interface to change the user's (primary) group or to enable/disable the ftp server, the dns-323 changes the user's password line on the dns-323.

This has the side effect of RESETTING the user's shell to the dummy (non-login) /bin/sh shell which breaks telnet/ssh login.

Any thoughts on the best (and least destructive) way to fix this?

Offline

 

#2 2008-09-18 17:53:07

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Turning on/off ftp server or changing user grp BREAKS telnet/ssh login

puterboy wrote:

Any thoughts on the best (and least destructive) way to fix this?

You can fix user shells on every reboot in /ffp/etc/fun_plug.local. Here's an example how to change the shell for a list of users

Code:

users="alice bob"
for u in $users; do
   chsh -s /ffp/bin/sh $u
done

Offline

 

#3 2008-09-18 19:32:09

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: Turning on/off ftp server or changing user grp BREAKS telnet/ssh login

Just a clarification - the password file is only changed when you add or edit the ftp account settings for a user (or the group he belongs to). Enabling/disabling the ftp server doesn't touch the password file.

So the problem is only with anything that changes the group affecting a user.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB