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 2012-03-14 01:30:06

forestcomber
New member
Registered: 2012-03-14
Posts: 3

pwconv: failed to change the mode of /etc/passwd- to 0600

Thank-you to fonz and everyone who helps out with fun_plug.

I'm trying to install 0.7 on DNS-323 following a guide (thanks Uli) that seems popular at :

http://nas-tweaks.net/40/installation-o … many-more/

Not sure if this installation procedure works for 0.7 or not.

When I try to issue the command "pwconv" through telnet it replies with the error :

pwconv: failed to change the mode of /etc/passwd- to 0600

Can someone give me a hand with this or suggest a different guide ?

Thank-you

Offline

 

#2 2012-03-14 09:05:23

Komano
Member
Registered: 2011-06-10
Posts: 42

Re: pwconv: failed to change the mode of /etc/passwd- to 0600

I have this exact problem and no one seems to be able to provide an answer. I've searched but unfortunately i still do not understand how to fix it.

EDIT: Okay, i found out where the problem is. But i'm not sure if my method will actually break the purpose of pwconv. But i get no errors so i assume it should be okay. Let's see.

I actually found this in the source code of pwconv.

Code:

    /* /etc/passwd- (backup file) */
    if (chmod (PASSWD_FILE "-", 0600) != 0) {
        fprintf (stderr,
                 _("%s: failed to change the mode of %s to 0600\n"),
                 Prog, PASSWD_FILE "-");
        SYSLOG ((LOG_ERR, "failed to change the mode of %s to 0600", PASSWD_FILE "-"));
        /* continue */
    }

So in this case, i am assuming pwconv is supposed to backup passwd before it makes any changes or there is supposed to be a passwd backup file in the first place. I'm not sure.

The reason it's giving this error is because the file "passwd-" obviously doesn't exist and it's valid. So what i did was all the same steps, install fun_plug.tgz via the normal way and once installed. I telnet into the box and i cd to the etc directory. Then i just "cp passwd passwd-" and then i cd / and then pwconv. You'll notice that there won't be an errors.

tl;dr version:

Code:

#Before you run pwconv
cd etc
cp passwd passwd-
cd /
pwconv

Last edited by Komano (2012-03-14 11:06:20)

Offline

 

#3 2012-03-15 00:03:20

forestcomber
New member
Registered: 2012-03-14
Posts: 3

Re: pwconv: failed to change the mode of /etc/passwd- to 0600

Thank-you for your reply Komano.  I'll give it a try later tonight.

Offline

 

#4 2012-03-15 01:00:26

forestcomber
New member
Registered: 2012-03-14
Posts: 3

Re: pwconv: failed to change the mode of /etc/passwd- to 0600

Your instructions work Komano.  Everything seemed to work but I'm getting a permission denied reply when I try to log in to ssh.

Offline

 

#5 2012-03-15 14:58:10

Komano
Member
Registered: 2011-06-10
Posts: 42

Re: pwconv: failed to change the mode of /etc/passwd- to 0600

I'm not sure about that but i've never experienced that. Maybe you wanna try some of the ffp 0.5 guides instead?

Offline

 

#6 2013-01-06 16:42:37

mcmurphy
Member
Registered: 2007-07-10
Posts: 26

Re: pwconv: failed to change the mode of /etc/passwd- to 0600

After I got

forestcomber wrote:

pwconv: failed to change the mode of /etc/passwd- to 0600

I just used pwunconv. Than passwd and everything was working as expected.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB