Ok, never mind. I think I solved my own problem. The /data directory
had root ownship. I thought this was OK since /data/BackupPC was owned
by apache user. However, clearly, that was not good enough. I changed
the ownership of:
chown apache.apache -R /data
and everything worked....

Well, at least it started backing stuff up. It started backing up '/'
even though I specified in BackupFilesOnly '/opt'. Strange... I guess,
I have to go back and read the docs again.... If anyone knows of a
quick fix for this, let me know.

Thanks,
Yaakov.

On 7/18/07, Yaakov Chaikin <[EMAIL PROTECTED]> wrote:
> I set up the BackupPC to run at 3am last night. Here are the logs that
> it produced... Basically, looks like the same problem. I don't get it.
> Anyone?
>
> *************************************************
> 2007-07-18 03:00:00 Reading hosts file
> 2007-07-18 03:00:00 Running 2 BackupPC_nightly jobs from 0..15 (out of 0..15)
> 2007-07-18 03:00:00 Running BackupPC_nightly -m 0 127 (pid=30849)
> 2007-07-18 03:00:00 Running BackupPC_nightly 128 255 (pid=30850)
> 2007-07-18 03:00:00 Next wakeup is 2007-07-19 03:00:00
> 2007-07-18 03:00:00 tbiqdev: mkdir /data/BackupPC: Permission denied
> at //usr/share/BackupPC/bin/BackupPC_dump line 193
> 2007-07-18 03:00:01 Finished  admin1  (BackupPC_nightly 128 255)
> 2007-07-18 03:00:01 BackupPC_nightly now running BackupPC_sendEmail
> 2007-07-18 03:00:01  admin : Can't read /data/BackupPC/pc: Permission
> denied at //usr/share/BackupPC/bin/BackupPC_sendEmail line 165.
> 2007-07-18 03:00:01 Finished  admin  (BackupPC_nightly -m 0 127)
> 2007-07-18 03:00:01 Pool nightly clean removed 0 files of size 0.00GB
> 2007-07-18 03:00:01 Pool is 0.00GB, 0 files (0 repeated, 0 max chain,
> 0 max links), 0 directories
> 2007-07-18 03:00:01 Cpool nightly clean removed 0 files of size 0.00GB
> 2007-07-18 03:00:01 Cpool is 0.00GB, 0 files (0 repeated, 0 max chain,
> 0 max links), 0 directories
> /bin/df: `/data/BackupPC': Permission denied
> /bin/df: no file systems processed
> /bin/df: `/data/BackupPC': Permission denied
> /bin/df: no file systems processed
> /bin/df: `/data/BackupPC': Permission denied
> /bin/df: no file systems processed
> /bin/df: `/data/BackupPC': Permission denied
> /bin/df: no file systems processed
> /bin/df: `/data/BackupPC': Permission denied
> /bin/df: no file systems processed
> /bin/df: `/data/BackupPC': Permission denied
> /bin/df: no file systems processed
> /bin/df: `/data/BackupPC': Permission denied
> /bin/df: no file systems processed
> /bin/df: `/data/BackupPC': Permission denied
> /bin/df: no file systems processed
> /bin/df: `/data/BackupPC': Permission denied
> /bin/df: no file systems processed
> **************
>
> ***************************************************************
>
> On 7/18/07, Yaakov Chaikin <[EMAIL PROTECTED]> wrote:
> > With all these side (albeit important) security issues, I never got an
> > answer to my question. Why am I am getting a Permission Denied error
> > and what am I doing wrong?
> >
> > Thanks,
> > Yaakov.
> >
> > On 7/18/07, Rob Owens <[EMAIL PROTECTED]> wrote:
> > > I believe you can look in the XferLog in the web interface to see the
> > > command that BackupPC attempted to run.
> > >
> > > I know a bit about ssh and security, but I'm relatively new to
> > > BackupPC.  I've only been using it about 2 weeks.
> > >
> > > -Rob
> > >
> > > Yaakov Chaikin wrote:
> > > > I am not really sure how to set this up. Does BackupPC start its own
> > > > process with whatever user I specify in config.pl? If so, then I can
> > > > see how this can be done, i.e., by simply specifying 'backuppc' as the
> > > > user in config.pl (I think there is a place in there to do this,
> > > > right? I don't have that file in front of me at the moment.) However,
> > > > if BackupPC does not start its own process under the specified in
> > > > config.pl user, then I am not sure how to set this up.
> > > >
> > > > Any help?
> > > >
> > > > Thanks,
> > > > Yaakov.
> > > >
> > > > On 7/18/07, Rob Owens <[EMAIL PROTECTED]> wrote:
> > > >> You want /data/BackupPC to be owned by user "backuppc".  You shouldn't
> > > >> be allowing user "apache" to do anything besides run the webserver.
> > > >> User "apache" should not be allowed to log in as root.  User "backuppc"
> > > >> should be allowed to log into the host machines as root (assuming 
> > > >> you're
> > > >> using rsync as your transport).
> > > >>
> > > >> -Rob
> > > >>
> > > >> Yaakov Chaikin wrote:
> > > >> > Hi,
> > > >> >
> > > >> > I am running BackupPC 3.0 and having trouble getting it to back up. 
> > > >> > So
> > > >> > far, I am just running a test back up on the machine that hosts the
> > > >> > BackupPC.
> > > >> >
> > > >> > Here is the error log that I am getting when I click "Start Full
> > > >> Backup":
> > > >> > **************************************
> > > >> > 2007-07-17 22:26:26 User yaakov requested backup of tbiqdev (tbiqdev)
> > > >> > 2007-07-17 22:26:26 tbiqdev: mkdir /data/BackupPC: Permission denied
> > > >> > at //usr/share/BackupPC/bin/BackupPC_dump line 193
> > > >> > **************************************
> > > >> >
> > > >> > The /data/BackupPC is directory where I specified I wanted the 
> > > >> > backups
> > > >> > to be stored. It's owned by the apache user since this is the user
> > > >> > that runs the 'httpd' server.
> > > >> >
> > > >> > What am I doing wrong?
> > > >> >
> > > >> > Thanks,
> > > >> > Yaakov.
> > > >> >
> > > >> > P.S. I followed the instructions and set up ssh key sharing. So, now
> > > >> > the user apache can log in as root without providing a password. I
> > > >> > don't know if this has anything to do with that since the client and
> > > >> > server is the same machine, but I figured I'd mention it.
> > > >> >
> > > >> >
> > > >> -------------------------------------------------------------------------
> > > >>
> > > >> > This SF.net email is sponsored by DB2 Express
> > > >> > Download DB2 Express C - the FREE version of DB2 express and take
> > > >> > control of your XML. No limits. Just data. Click to get it now.
> > > >> > http://sourceforge.net/powerbar/db2/
> > > >> > _______________________________________________
> > > >> > BackupPC-users mailing list
> > > >> > [email protected]
> > > >> > https://lists.sourceforge.net/lists/listinfo/backuppc-users
> > > >> > http://backuppc.sourceforge.net/
> > > >> >
> > > >>
> > >
> >
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to