RE: [PHP] chmod gives invalid mode error
| From: | MrBaseball34 | Date: | Tue, 06 Nov 2001 19:12:28 +0000 |
| Subject: | RE: [PHP] chmod gives invalid mode error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73639@lists.php.net to get a copy of this message | ||
In article <67DF9B67CEFAD4119E4200D0B720FA3FB5F46A@BOOTROS>,
jhaworth@witanjardine.co.uk says...
> You might prefer to try
>
> chmod 766 settings.php
>
> as this is the order that chmod expects its parameters in - "settings.php"
> is not a mode setting, hence the "invalid mode" error you're getting :-)
>
> This is useful because you can do
>
> chmod 766 settings.php foo.php bar.php xyzzy.php
>
> and all four files will be set to 766
>
> HTH
> Jon
>
>
> -----Original Message-----
> From: MrBaseball34 [mailto:mrbaseball34@hotmail.com]
> Sent: 06 November 2001 16:35
> To: php-general@lists.php.net
> Subject: [PHP] chmod gives invalid mode error
>
>
> 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.
Yep, that one worked...