Tags:
create new tag
view all tags

Question

I have successfully followed the WindowsInstallCookbook as far as Edit Configuration Files and Set File Permissions.

Section 9 says "Directories twiki/data, twiki/lib, twiki/templates and all their subdirectories should be configured in your Apache server so that they are not visible through URLs". But there is no explanation of how to do this; I see no obvious option under Apache.

Section 10 explains how to set file permissions. I have successfully run chmod 755 /twiki/bin and chown system /twiki (chown system twiki did not work - error in the cookbook?) but I am having problems with the chgrp command:

sm5580@PT-DSG-D2684 /twiki
$ chgrp -R twiki
chgrp: missing operand after `twiki'
Try `chgrp --help' for more information.
sm5580@PT-DSG-D2684 /twiki
$ chgrp -R /twiki
chgrp: missing operand after `/twiki'
Try `chgrp --help' for more information.

I had a look through a number of other posts, but obviously nobody else is as stupid as me frown - can someone help?

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins:  
Server OS: Windows 2000
Web server: Apache 1.3.33
Perl version: 5.8.7-4
Client OS: Windows 2000
Web Browser: MSIE 6.0.2800
Categories: Platform, Installation

-- SarahMould - 04 Jan 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Section 10 has some follow-on bullets that talk about copying *access.txt files into place as .htaccess as required - one for each of data, lib, templates, etc. Apache tutorials on .htaccess may also help here.

Are you reading an older version of the install cookbook, perhaps? WindowsInstallCookbook is the best and latest version.

As for chgrp, you need to read man chgrp or a Linux tutorial - it takes an argument (the group you to which you want to change the file).

-- RichardDonkin - 04 Jan 2006

Using cookbook 51.45 - 22 October 2005.

Yes, I did read the rest of the cookbook, but my question is how exactly to configure the directories so they are not readable, and how exactly to perform the chgrp command on a Windows installation which has been installed exactly per the cookbook. You will see that I did pass the arguments to chgrp as instructed, but there is clearly something not quite right in the instructions. I am sure it is extremely simple for someone with more knowledge than me, but I have very little background in *nix. Reading the man page shows me that the -R means recursive (and then I can't get back to the commandline - how do you do that?), but the problem is with the directory. Should I be in the parent directory, or what?

-- SarahMould - 04 Jan 2006

Command:
chgrp -R <group> <directory>

where
<group> is the name of an existing group and
<directory> is the name of the subdirectory which group attribute you wish to change.
-R stands for Recursive, that means all files in all subdirectories of the specified <directory> are affected by the change.

Note:
The permissions for files on Windows are very different from that on Unix --> maybe the chgrp command is of no value here.

Hope that helps.

-- FranzJosefSilli - 04 Jan 2006

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-03-07 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.