[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] FileMan Package FIX for All Site Users
- Subject: [cobalt-users] FileMan Package FIX for All Site Users
- From: "Khalil@xxxxxxxxx" <khalil@xxxxxxxxx>
- Date: Tue Jan 8 20:07:37 2002
- Organization: http://www.KhalilAhmad.com
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Alex,
Alright, I found it. As I said in my earlier email, this script "FileMan"
only works for Site Admins and not for Site Users. That is true. Your script
"fileman.pl" just dies on line 52 when any user except siteAdmin tries to
login. Check here:
unless ($members =~ /$ENV{REMOTE_USER}/) {
die sprintf ($GT::FileMan::Commands::LANGUAGE{COBALT_BADGROUP},
$root_dir, $ENV{REMOTE_USER});
}
If you take out this line:
die sprintf ($GT::FileMan::Commands::LANGUAGE{COBALT_BADGROUP},
$root_dir, $ENV{REMOTE_USER});
and replace it with something like
my ($user_dir) = $dir =~
m,^(/home/sites/\w+/users/$ENV{REMOTE_USER}),;
$root_dir = $user_dir;
It will now just work fine with all site users by putting users in their
respective home directories if they are not site_admins. And they will not
be able to access the upper level dir.
Cheers
-Khalil Ahmad
---
Paksys Consulting, Inc.
http://www.paksys.com
----- Original Message -----
From: "Alex Krohn" <alex@xxxxxxxxxxxxxxxxxxxx>
To: <cobalt-developers@xxxxxxxxxxxxxxx>
Sent: Monday, January 07, 2002 8:10 PM
Subject: Re: [cobalt-developers] FileMan 2 Package Available
> Hi,
>
> > On RaQ4 I noticed it only works for the site admins but not for the
> > site/domain users. Is it true or am I missing something here?
>
> No, it should work for everyone. What happens when you do it as a
> site/domain user?
>
> Cheers,
>
> Alex
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>