[ic] suexec & IC 4.8.5 makecat

Randy Moore interchange-users@icdevgroup.org
Sat Aug 3 21:54:01 2002


Hi all,

I've been trying to work out how to use 'makecat' to setup a catalog in a 
suexec (well actually cgiwrap in my case) environment.  I've seen several 
messages asking about this on the list recently, but no firm solutions. The 
method I've figured out works, but requires a couple of steps that should, 
IMHO, be unnecessary.

Assume:
	'custlogin' = customers login account
	'custhomedir' = customers home directory
	'custhomedir/catalogs' = IC catalogs director for customer site
	'custhomedir/html' = customers document root directory

Here is what I have to do:
0) start as 'root'
1) cd custhomedir
2) mkdir custhomedir/catalogs
3) chown custlogin.custlogin custhomedir/catalogs
4) su -l custlogin

5) /usr/local/interchange/bin/makecat
5a) run through makecat setup normally, except
5b) Do you use CGIWRAP or SUEXEC? y
5c) Add catalog to interchange.cfg? n

6) chmod 660 custhomedir/catalogs/foundation/products/*

7) exit		(go back to root privileges)

8) Manually add the appropriate 'catalog' line to 'interchange.cfg'.  In my 
case:
catalog foundation      custhomedir/catalogs/foundation 
/shared-cgi/cgiwrap/custlogin/cgi-bin/foundation

9) Restart interchange


My main question about this is:  What controls the permissions that get 
assigned to the files in the products directory?  And therefore, what can I 
change in makecat or my template directory structure to make these get 
installed with the correct permissions?

Thanks for any suggestions.
Randy Moore
Axion Information Technologies, Inc.

email     ramoore@axion-it.net
phone   301-408-1200
fax        301-445-3947