[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] CMU Ownership Problem



Andrew wrote on 17.06.2001:

> All the directories seem to have changed permissions.
> ( I think this is a common problem with the CMU but I cannot see a fix for this )

Yes, this is a common problem with CMU among others and I
can't understand why there is no fix for it because CMU could
be a fantastic time-saving addon for every cobalt-user.

Since all files in the /web-directory are owned by admin, you
should telnet/ssh to your RaQ, su to root, cmuImport and do a

chown -R username /home/sites/www.domain.de/web

This will change the ownership from "admin" to the user
"username" to all files under the web-tree for your site
www.domain.de.

If you don't know the username look at your GUI under
http://yourraqhostname:81/.cobalt/siteManage/www.domain.de/ or
the output of the cmuImport-script or do a

ls /home/sites/www.domain.de/users

which will list all possible usernames for your site. You
should chose one of the siteadmin-users.

A good tip for CMU is to change ip-adresses and other things
before cmuImport:

perl -pi -e 's#200\.199\.198\.197#100\.101\.102\.103#' cmu.xml

this will change the ip-adress from 200.199.198.197 to
100.101.102.103

perl -pi -e 's#<vsHostName value=\"www\"/>#<vsHostName value=\"www\"/>\n<vsPhp bool=\"t\"/>\n<vsApop bool=\"t\"/>#' cmu.xml

this will add PHP and APOP-Support for all domains

One last thing, if you transfer cmu-files over ftp, you should
open the ftp-connection from the source-raq since all output
of cmu is owned by root and you should never login via ftp to
this server as root from the target raq. It's a good idea to
use the -i flag since you can do a "multiple-put" without any
questions:

[on source]

cmuExport
cd /home/cmu/source.raq.de

ftp -i target.raq.de
cd /home/targetdirectory
ascii
put cmu.xml
put backup.md5lst
binary
mput *gz
exit

[on target]

cd /home/targetdirectory
# edit cmu.xml
cmuImport -d /home/targetdirectory
# change ownership of web-diretories


Regards,
Daniel