Re: [BackupPC-users] Issue with configure.pl not recognizing user

2020-01-02 Thread Michael Stowe

On 2020-01-02 14:14, White FrosT wrote:


Thanks Michaelm "passwd backuppc" seems to work fine, but the configure script 
does not. I did the modifications using usermod, useradd etc. Is there anyone that knows 
the configure script in depth and can help me with a step by step debug of this issue?


I'm fairly familiar with the configure scripts, though the first place
I'd look is that there might be a clue in the package for vipw not
looking for the passwd file in the right place -- by a similar token, if
the module perl uses to access user information is looking in the wrong
place, you'll have the same symptoms.  Was perl and its modules
installed from the same repository?___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Issue with configure.pl not recognizing user

2020-01-02 Thread White FrosT
Thanks Michaelm "passwd backuppc" seems to work fine, but the configure
script does not. I did the modifications using usermod, useradd etc. Is
there anyone that knows the configure script in depth and can help me with
a step by step debug of this issue?


Op di 31 dec. 2019 om 23:56 schreef Michael Stowe <
michael.st...@member.mensa.org>:

> On 2019-12-31 09:03, White FrosT wrote:
>
> Hi All,
> Thanks for the feedback, but I'm not getting there yet.
>
> I tried vipw, but this doesn't work. It was not on my system, installed it
> with opkg install shadow-vipw. But then running vipw gives me:
> vipw: /opt/etc/passwd: No such file or directory
> vipw: /opt/etc/passwd is unchanged
>
> Neither does adding a shell to the user (/sbin/nologin) change anything.
>
> Thanks for any additional idea's!
>
>
> Op di 31 dec. 2019 om 16:54 schreef mlm :
>
>
> On 12/30/2019 6:57 PM, Michael Stowe wrote:
>
> On 2019-12-30 12:24, White FrosT wrote:
>
> Dear list,
> I have an issue installing backuppc on my new network disk running Linux
> 4.2.8 ARMv71. I think I have managed all preconditions in perl (v5.28.1)
> and are ready to install, but I run into an issue with configure.pl
> .
> It doesn't let me set the user to run BackupPC with. See the snapshot of
> the script output below:
>
> --> BackupPC should run as user [backuppc]
>
> getpwnam() says that user backuppc doesn't exist.  Please
> check the name and verify that this user is in the passwd file.
>
> But the user does exist on my system, see:
>
> [/.../BackupPC-4.3.1] # grep backuppc /etc/passwd
> backuppc:x:1000:1000::/share/homes/Backupuser/:
>
> I cannot seem to workaround this problem. Does anyone have any leads?
>
> Thanks a lot!
>
> For what it's worth, I've seen this behavior when shadow hasn't properly
> been updated, and it took (takes?) running vipw, then rebooting.  YMMV
>
> hi,
>
> Might need an entry where the shell for the user normally goes.
>
> This is what my entry looks like:
>
>
> backuppc:x:988:983::/var/lib/BackupPC:/sbin/nologin
>
> Mark
>
> What vipw does is set the appropriate locks and prevent corruption while
> editing the password file -- under the covers, it's often vi or vim,
> anyway.  Depending on the platform, this will help trigger the shadow
> update (thus my suggestion to use vipw and reboot.)  In your case, it seems
> the package for vipw doesn't fit with the actual location of passwd and
> shadow on your system.
>
> Usually it's best not to directly interact with either file, as a syntax
> error can result in accounts not working, instead it is better to use tools
> like adduser and passwd.  Officially, authconfig (on Linux) is probably the
> right way to update whatever files must be coordinated.  You could also
> just use "passwd backuppc" as root.
>
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/