Re: chmod gives invalid mode error
| From: | TD - Sales International Holland B.V. | Date: | Wed, 07 Nov 2001 08:37:02 +0000 |
| Subject: | Re: chmod gives invalid mode error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73695@lists.php.net to get a copy of this message | ||
On Tuesday 06 November 2001 17:35, you wrote:
> I got an invlid mode error when trying to chmod of
> settings.php to 766.
>
> Here is my ls:
> -rw-r--r-- <SNIP> settings.php
>
> How do you read the -rw-r--r--?
> How do I change the mode?
>
> chmod settings.php 766 did not work.
No it doesn't work for obvious reasons. chmod --help might help........
chmod 766 settings.php should work
as for the how do you read it part
-rw-r--r--
broken up
- for special bits, c for character device, b for block device, S for
set-uid, d for directory, - incase of normal file
rw- read/write for the user who owns it, which you snipped
r-- read for the group that owns it, which you also snipped :-)
r-- read for all others, this means everybody thus
766 will set -rwxrw-rw- which you DON'T want unless you want to give
everybody write access to your settings..... I wouldn't do that
man chmod for more info
regards