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-08-26 16:22:29

monarchdodra
New member
Registered: 2009-01-17
Posts: 4

Usermod reset

I want to be able to ssh into my machine as somebody other than "root" (and hopefully deactivate the root account). To do this, I do "usermod -s /ffp/bin/sh" so that I have the correct shell when connecting via ssh (not busybox).

After reboot though, my user's -s path is reset to "/bin/sh" (my home -d path is also reset, but that's not a big deal). Is this normal? Should I not bother and just ssh into my machine via root all the time?

My fix was to just add the usermod commands at the bottom of my fun_plug, to set the paths after every boot.

Am I doing something wrong/stupid? Is there another, smarter, way to achieve my goal?

Offline

 

#2 2011-08-26 17:09:03

rsd76
Member
Registered: 2010-04-18
Posts: 47

Re: Usermod reset


Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin & Hobbes)

Offline

 

#3 2011-08-26 17:28:58

monarchdodra
New member
Registered: 2009-01-17
Posts: 4

Re: Usermod reset

Ah... I forgot to store-passwd.sh. Thankyou very much.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB