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

2019-12-31 Thread 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


___
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] backuppc 4.2.1 perl issue

2018-06-13 Thread mlm

hi,

First line:
#!/bin/perl
#= -*-perl-*-w
#

selinux is in permissive mode

manually run:


Content-Type: text/html; charset=utf-8



BackupPC Server Status
href="/var/www/htdocs/BackupPC/image/BackupPC_stnd.css" title="CSSFile">
type="image/x-icon">



onLoad="document.getElementById('NavMenu').style.height=document.body.scrollHeight">



    
    https://backuppc.github.io/backuppc/;>src="/var/www/htdocs/BackupPC/image/logo.gif">

    

Hosts

    
    type="submit" value="Go" name="ignore">

    
Server
Status
Host Summary
Documentation
https://github.com/backuppc/backuppc/wiki;>Wiki
https://backuppc.github.io/backuppc;>Homepage

 

    BackupPC Server Status



    Currently Running Jobs



 Host 
     Type 
     User 
     Start Time 
     Command 
     PID 
     Xfer PID 
     Status 
     Count 
    






    Failures that need attention



 Host 
     Type 
     User 
     Last Try 
     Details 
     Error Time 
     Last error (other than no ping) 





apache is running as backuppc user.

Mark


On 6/12/2018 10:25 PM, Craig Barratt via BackupPC-users wrote:

Some random questions:

What's the very first line of BackupPC_Admin?

Could this be some sort of selinux issue?

What happens when you manually run BackupPC_Admin (as the backuppc 
user)?  What user is apache running as?


Craig

On Tue, Jun 12, 2018 at 7:17 PM, mlm <mailto:m...@sr.unh.edu>> wrote:




On 6/12/2018 8:10 PM, Holger Parplies wrote:

Hi,

mlm wrote on 2018-06-12 17:20:06 -0400 [[BackupPC-users]
backuppc 4.2.1 perl issue]:

[...]
New system running Scientific Linux 7.5, installed 4.2.1
from tar file

Global symbol "%In" requires explicit package name at
/usr/share/BackupPC/sbin/BackupPC_Admin line 90.
[...]
Bareword "BackupPC::CGI::Lib::NewRequest" not allowed
while "strict subs" in use at
/usr/share/BackupPC/sbin/BackupPC_Admin line 56.
[...]
Any suggestions on troubleshooting further?

what do the first few non-comment lines of your BackupPC_Admin
look like
(about 12, but I don't have 4.2.1 here right now, so that
might have changed;
up to the first "my" variable declaration)? It would seem that the
BackupPC::CGI::Lib module is not correctly imported. Is the
path in the
"use lib" pragma correct for your installation? What are the
permissions on
the library file and its parent directories?

What Perl version are you running ('perl -v')?

Regards,
Holger

hi
from BackupPC_Admin:

use strict;
no  utf8;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use lib "/usr/local/BackupPC/lib";

use BackupPC::Lib;
use BackupPC::CGI::Lib qw(:all);

BackupPC::CGI::Lib::NewRequest;

my %ActionDispatch = (
    "deleteBackup"   => "DeleteBackup",

folders all owned by backupc:
s -al /usr/local/BackupPC/lib/BackupPC/
total 108
drwxr-xr-x. 8 backuppc backuppc   160 Jun 12 21:40 .
drwxr-xr-x. 4 backuppc backuppc    33 Jun 12 16:09 ..
drwxr-xr-x. 2 backuppc backuppc  4096 Jun 12 21:40 CGI
drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Config
-r--r--r--. 1 backuppc backuppc 13638 Jun 12 21:40 DirOps.pm
drwxr-xr-x. 2 backuppc backuppc   181 Jun 12 21:40 Lang
-r--r--r--. 1 backuppc backuppc 38786 Jun 12 21:40 Lib.pm
drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Storage
-r--r--r--. 1 backuppc backuppc  3014 Jun 12 21:40 Storage.pm
-r--r--r--. 1 backuppc backuppc 36631 Jun 12 21:40 View.pm
drwxr-xr-x. 2 backuppc backuppc   101 Jun 12 21:40 Xfer
-r--r--r--. 1 backuppc backuppc  5002 Jun 12 21:40 Xfer.pm
drwxr-xr-x. 2 backuppc backuppc    27 Jun 12 21:40 Zip


This is perl 5, version 16, subversion 3 (v5.16.3) built for
x86_64-linux-thread-multi
(with 33 registered patches, see perl -V for more detail)




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
<mailto:BackupPC-users@lists.sourceforge.net>
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
<https://lists.sourceforge.net/lists/listinfo/backuppc-users>
Wiki: http://backuppc.wiki.sourceforge.net
<http://backuppc.wiki.sourceforge.net>
Project: http://backuppc.sourceforge.net/
&

Re: [BackupPC-users] backuppc 4.2.1 perl issue

2018-06-12 Thread mlm



On 6/12/2018 8:10 PM, Holger Parplies wrote:

Hi,

mlm wrote on 2018-06-12 17:20:06 -0400 [[BackupPC-users] backuppc 4.2.1 perl 
issue]:

[...]
New system running Scientific Linux 7.5, installed 4.2.1 from tar file

Global symbol "%In" requires explicit package name at 
/usr/share/BackupPC/sbin/BackupPC_Admin line 90.
[...]
Bareword "BackupPC::CGI::Lib::NewRequest" not allowed while "strict subs" in 
use at /usr/share/BackupPC/sbin/BackupPC_Admin line 56.
[...]
Any suggestions on troubleshooting further?

what do the first few non-comment lines of your BackupPC_Admin look like
(about 12, but I don't have 4.2.1 here right now, so that might have changed;
up to the first "my" variable declaration)? It would seem that the
BackupPC::CGI::Lib module is not correctly imported. Is the path in the
"use lib" pragma correct for your installation? What are the permissions on
the library file and its parent directories?

What Perl version are you running ('perl -v')?

Regards,
Holger


hi
from BackupPC_Admin:

use strict;
no  utf8;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use lib "/usr/local/BackupPC/lib";

use BackupPC::Lib;
use BackupPC::CGI::Lib qw(:all);

BackupPC::CGI::Lib::NewRequest;

my %ActionDispatch = (
    "deleteBackup"   => "DeleteBackup",

folders all owned by backupc:
s -al /usr/local/BackupPC/lib/BackupPC/
total 108
drwxr-xr-x. 8 backuppc backuppc   160 Jun 12 21:40 .
drwxr-xr-x. 4 backuppc backuppc    33 Jun 12 16:09 ..
drwxr-xr-x. 2 backuppc backuppc  4096 Jun 12 21:40 CGI
drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Config
-r--r--r--. 1 backuppc backuppc 13638 Jun 12 21:40 DirOps.pm
drwxr-xr-x. 2 backuppc backuppc   181 Jun 12 21:40 Lang
-r--r--r--. 1 backuppc backuppc 38786 Jun 12 21:40 Lib.pm
drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Storage
-r--r--r--. 1 backuppc backuppc  3014 Jun 12 21:40 Storage.pm
-r--r--r--. 1 backuppc backuppc 36631 Jun 12 21:40 View.pm
drwxr-xr-x. 2 backuppc backuppc   101 Jun 12 21:40 Xfer
-r--r--r--. 1 backuppc backuppc  5002 Jun 12 21:40 Xfer.pm
drwxr-xr-x. 2 backuppc backuppc    27 Jun 12 21:40 Zip


This is perl 5, version 16, subversion 3 (v5.16.3) built for 
x86_64-linux-thread-multi

(with 33 registered patches, see perl -V for more detail)


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
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/