Thread: Re: [Personalbackup-users] Gentoo installation
Status: Beta
Brought to you by:
linuxtuxie
From: kku <kk...@el...> - 2005-02-21 10:16:51
|
At 10:44 21/02/2005, you wrote: >On Mon, 2005-02-21 at 10:38 +0100, Toni Van Remortel wrote: > > Any idea? > >Again, my mistake. Seems that the old config file cannot be used. I >copied the new one, updated it, and now it runs. Indeed...the old config cannot be used anymore :) Regards, LinuxTuxie |
From: kku <kk...@el...> - 2005-02-21 10:17:04
|
At 11:03 21/02/2005, you wrote: >On Mon, 2005-02-21 at 10:50 +0100, kku wrote: > > At 10:44 21/02/2005, you wrote: > > >On Mon, 2005-02-21 at 10:38 +0100, Toni Van Remortel wrote: > > > > Any idea? > > > > > >Again, my mistake. Seems that the old config file cannot be used. I > > >copied the new one, updated it, and now it runs. > > > > Indeed...the old config cannot be used anymore :) > >OK, that is solved. >Now I cannot login with 'admin' 'admin'. I just get back to the login >screen without an error. > >Where to look? Database? It depends on the authentication method you selected. You can only use admin/admin if you select "database" as authentication method. If you use "ldap" or "passwd", the admin account is not used at all. If you use ldap or passwd, you need to login with a known account and after that you need to run the next sql statement to give that account "admin" priviliges: UPDATE users SET admin='Y' WHERE username='user'; This user can now revoke/grant other users "admin" priviliges via the web-interface. Regards, LinuxTuxie |
From: kku <kk...@el...> - 2005-02-21 10:52:55
|
At 11:46 21/02/2005, you wrote: >On Mon, 2005-02-21 at 11:16 +0100, kku wrote: > > > You can only use admin/admin if you select "database" as authentication > method. > >Or I'm doing something wrong, or it doesn't work. > >Anyway, the config file points out that the database needs to be used. I >can create a new account through the login-screen, but when I try to use >it, the screen blanks and returns to the login-screen without any >notice. >Apache2 acces_log shows me a SESSION for index.cgi. Perhaps I'm missing >session support somewhere ... You only need to make sure you that you have the perl CGI::Session module. >/var/log/personalbackup stays empty. That is normal, the folder /var/log/personalbackup is used for the machines that will be backed up, they will place their logfiles in that folders. PersonalBackup itself (daemon & web interface) uses syslog to send its log/error messages. So you should have a look at your /var/log/messages file. Regards, LinuxTuxie |
From: Toni V. R. <t.v...@ha...> - 2005-02-21 11:19:37
|
On Mon, 2005-02-21 at 11:52 +0100, kku wrote: > At 11:46 21/02/2005, you wrote: > >On Mon, 2005-02-21 at 11:16 +0100, kku wrote: > > > > > You can only use admin/admin if you select "database" as authentication > > method. > > > >Or I'm doing something wrong, or it doesn't work. > > > >Anyway, the config file points out that the database needs to be used. I > >can create a new account through the login-screen, but when I try to use > >it, the screen blanks and returns to the login-screen without any > >notice. > >Apache2 acces_log shows me a SESSION for index.cgi. Perhaps I'm missing > >session support somewhere ... > > You only need to make sure you that you have the perl CGI::Session module. Is available. This is what I get when logging in with an existing account: 10.152.31.2 - toni [21/Feb/2005:12:29:59 +0100] "POST /login.cgi HTTP/1.1" 200 105 "http://backup.ontwerpwetenschappen.ha.be/login.cgi" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0" 10.152.31.2 - toni [21/Feb/2005:12:30:01 +0100] "GET /favicon.ico HTTP/1.1" 404 325 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0" 10.152.31.2 - toni [21/Feb/2005:12:30:01 +0100] "GET /index.cgi?CGISESSID=479dbd84dfe85105deb67468fa1a80b1 HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0" 10.152.31.2 - toni [21/Feb/2005:12:30:02 +0100] "GET /login.cgi HTTP/1.1" 200 1725 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0" 10.152.31.2 - toni [21/Feb/2005:12:30:03 +0100] "GET /favicon.ico HTTP/1.1" 404 325 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0" I'm just redirected to the login.cgi again. Apache2 config: <VirtualHost *> ServerName backup.ontwerpwetenschappen.ha.be DocumentRoot /var/www/personalbackup </VirtualHost> <Directory /var/www/personalbackup> AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all </Directory> -- Van Remortel Toni Systeem- en netwerkbeheer HA - Dept. Ontwerpwetenschappen tel: +32 (0) 3 205 61 89 .:. e-mail: t.v...@ha... |
From: kku <kk...@el...> - 2005-02-21 12:48:55
|
At 12:19 21/02/2005, you wrote: >On Mon, 2005-02-21 at 11:52 +0100, kku wrote: > > At 11:46 21/02/2005, you wrote: > > >On Mon, 2005-02-21 at 11:16 +0100, kku wrote: > > > > > > > You can only use admin/admin if you select "database" as > authentication > > > method. > > > > > >Or I'm doing something wrong, or it doesn't work. > > > > > >Anyway, the config file points out that the database needs to be used. I > > >can create a new account through the login-screen, but when I try to use > > >it, the screen blanks and returns to the login-screen without any > > >notice. > > >Apache2 acces_log shows me a SESSION for index.cgi. Perhaps I'm missing > > >session support somewhere ... > > > > You only need to make sure you that you have the perl CGI::Session module. > >Is available. > >This is what I get when logging in with an existing account: > > >10.152.31.2 - toni [21/Feb/2005:12:29:59 +0100] "POST /login.cgi >HTTP/1.1" 200 105 "http://backup.ontwerpwetenschappen.ha.be/login.cgi" >"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 >Firefox/1.0" >10.152.31.2 - toni [21/Feb/2005:12:30:01 +0100] "GET /favicon.ico >HTTP/1.1" 404 325 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) >Gecko/20041107 Firefox/1.0" >10.152.31.2 - toni [21/Feb/2005:12:30:01 +0100] >"GET /index.cgi?CGISESSID=479dbd84dfe85105deb67468fa1a80b1 HTTP/1.1" 302 >- "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 >Firefox/1.0" >10.152.31.2 - toni [21/Feb/2005:12:30:02 +0100] "GET /login.cgi >HTTP/1.1" 200 1725 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; >rv:1.7.5) Gecko/20041107 Firefox/1.0" >10.152.31.2 - toni [21/Feb/2005:12:30:03 +0100] "GET /favicon.ico >HTTP/1.1" 404 325 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) >Gecko/20041107 Firefox/1.0" > > >I'm just redirected to the login.cgi again. > > >Apache2 config: > ><VirtualHost *> > ServerName backup.ontwerpwetenschappen.ha.be > DocumentRoot /var/www/personalbackup ></VirtualHost> > ><Directory /var/www/personalbackup> > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all ></Directory> This seems to be ok. What does /var/log/messages show when you enter the login page ? Regards, LinuxTuxie |
From: kku <kk...@el...> - 2005-02-21 13:11:40
|
At 13:59 21/02/2005, you wrote: >On Mon, 2005-02-21 at 13:48 +0100, kku wrote: > > > This seems to be ok. What does /var/log/messages show when you enter the > > login page ? > >This is shown whe I start personalbackupd: > >Feb 21 14:11:27 Fata-Morgana personalbackup[9030]: Starting up >personalbackupd >Feb 21 14:11:27 Fata-Morgana personalbackup[9031]: Resetting database >Feb 21 14:11:27 Fata-Morgana personalbackup[9031]: Setting Incomplete >backup logs to Failed >Feb 21 14:11:28 Fata-Morgana personalbackup[9033]: Starting Cleanup >Feb 21 14:11:28 Fata-Morgana personalbackup[9033]: Closing down Cleanup > >The logon-process doens't show anything. Are you sure that the folder "$tempdir" exists (it can be found in /etc/personalbackup.conf) and is world writable/readable ? CGI::Session is going to use this folder to store its session info. So your the user under which apache is running needs to have write access to this folder. Maybe the error_log of apache will show you some more details ? >PS I managed to make a working init-script on Gentoo. See attachement. Thanks!! LinuxTuxie |
From: Toni V. R. <t.v...@ha...> - 2005-02-21 13:20:44
|
On Mon, 2005-02-21 at 14:11 +0100, kku wrote: > Are you sure that the folder "$tempdir" exists (it can be found in > /etc/personalbackup.conf) and is world writable/readable ? > > CGI::Session is going to use this folder to store its session info. > So your the user under which apache is running needs to have write access > to this folder. That's him! I was expecting that the daemon or the CGI scripts would make the folders. Let's test this piece of code :-) Regards, -- Van Remortel Toni Systeem- en netwerkbeheer HA - Dept. Ontwerpwetenschappen tel: +32 (0) 3 205 61 89 .:. e-mail: t.v...@ha... |
From: kku <kk...@el...> - 2005-02-21 13:48:48
|
At 14:20 21/02/2005, you wrote: >On Mon, 2005-02-21 at 14:11 +0100, kku wrote: > > > Are you sure that the folder "$tempdir" exists (it can be found in > > /etc/personalbackup.conf) and is world writable/readable ? > > > > CGI::Session is going to use this folder to store its session info. > > So your the user under which apache is running needs to have write access > > to this folder. > >That's him! >I was expecting that the daemon or the CGI scripts would make the >folders. No...not yet ..it's on the TODO list ;) Regards, LinuxTuxie |