BackupPC-users

Re: [BackupPC-users] Changing your login user

2008-05-07 23:02:09
Subject: Re: [BackupPC-users] Changing your login user
From: "Ambrose Li" <ambrose.li AT gmail DOT com>
To: peter_2000 AT users.sourceforge DOT net
Date: Wed, 7 May 2008 23:02:03 -0400
Yes, you'll need to get backuppc to reread the configuration file.

Two observations though:

First, I think the 'link' line could be rewritten thus (bypassing the
customization step):
'link' => eval { my $a = CGI::url(); $a =~ s{:/+}{://nouser:nopass\@}; $a },

Second, I tried it on my backuppc. If I use the back button I find that
I'm still logged in. It seems that what that link does it just to redirect
you to a nouser AT example DOT com address which has no perms, but
if you go back to your regular example.com address (without the
nouser@ part) you still have your logged-in perms. I guess you
can't really log yourself out like this.


On 07/05/2008, Peter <peter_2000 AT users.sourceforge DOT net> wrote:
> Hi Stephen,
>  Thanks for the information.
>
>  I tried entering the suggestion in the CGI interface but nothing appears
>  on the index. I replaced the myserver.doman with my IP address (figured
>  the simplest approach first should work). I also changed https to http.
>
>  Do I need to restart something?
>  Thanks
>  Peter
>
>
>
>  ----- Original message -----
>  From: "Stephen Joyce" <stephen AT physics.unc DOT edu>
>  To: "Peter" <peter_2000 AT users.sourceforge DOT net>
>  Cc: "BackupPC User List" <backuppc-users AT lists.sourceforge DOT net>
>  Date: Tue, 6 May 2008 07:59:36 -0400 (EDT)
>  Subject: Re: [BackupPC-users] Changing your login user
>
>
> You can add something like the following to the $Conf{CgiNavBarLinks}
>  area
>  of your config.pl. This works in firefox; I haven't tested IE.
>
>   { 'link' =>
>   'https://nouser:[email protected]/cgi-bin/BackupPC_Admin',
>     'lname' => undef,
>     'name' => 'Logout of BackupPC'
>   }
>
>  Replace myserver.domain with your own and change https to http if you're
>  not using SSL (though you should be). This edit can also be done via the
>  CGI: Edit Config -> CGI -> CgiNavBarLinks -> Add.
>
>  Cheers, Stephen
>  --
>  Stephen Joyce
>  Systems Administrator                                            P A N I
>  C
>
> [... cut ...]
>
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  Don't miss this year's exciting event. There's still time to save $100.
>  Use priority code J8TL2D2.
>  
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  _______________________________________________
>  BackupPC-users mailing list
>  BackupPC-users AT lists.sourceforge DOT net
>  List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
>  Wiki:    http://backuppc.wiki.sourceforge.net
>  Project: http://backuppc.sourceforge.net/
>


-- 
cheers,
-ambrose

The 'net used to be run by smart people; now many sites are run by
idiots. So SAD... (Sites that do spam filtering on mails sent to the
abuse contact need to be cut off the net...)

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/