1
lordliquid
Mainfile.php Read-Only?
  • 2005/12/24 3:15

  • lordliquid

  • Just popping in

  • Posts: 27

  • Since: 2005/9/22


mainfile.php is writeable by the server.
Please change the permission of this file for security reasons.
in Unix (444), in Win32 (read-only)

What is this warning and how do i fix it? attributes changing isnt allowed on my server.

2
jdseymour
Re: Mainfile.php Read-Only?

Ask your server administrator to change the file attributes.

3
Bananadude
Re: Mainfile.php Read-Only?
  • 2005/12/24 11:11

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


Make a new file and add the following to it:
chmod("mainfile.php"0444);


save it as whateverYouWant.php, upload it to the root of your Xoops-directory and call it from your browser.

You should also read the topic What are the correct file permissions?

Best Regards,
Bananadude
--- censored by Bananadude ---

4
LoneStarM
Re: Mainfile.php Read-Only?
  • 2006/10/29 17:33

  • LoneStarM

  • Just popping in

  • Posts: 3

  • Since: 2005/9/2 1


Quote:

Bananadude wrote:
Make a new file and add the following to it:
chmod("mainfile.php"0444);


save it as whateverYouWant.php, upload it to the root of your Xoops-directory and call it from your browser.

You should also read the topic What are the correct file permissions?

Best Regards,
Bananadude


I am having the same problem, but running WinXP on my home computer. The equivalent setting for Unix "0444" is "Read Only"

I downloaded "mainfile.php" - found it already "read only" reset it to same and uploaded it.

The attributes show " -rw-r-r-- " which looks right to me??

However, still get the security warning that it is not set.

Would appreciate any help.

Jerry

5
McNaz
Re: Mainfile.php Read-Only?
  • 2006/10/29 22:00

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


Quote:
The attributes show " -rw-r-r-- " which looks right to me??


I could be wrong on this one but I believe that "-rw-r-r--" is 0644. 0444 should give you "-r--r--r--"

Cheers.

6
jdseymour
Re: Mainfile.php Read-Only?

You are correct McNaz, chmod 0444 should give write privileges (W) to nobody even the owner. Hence the read only attribute.

7
LoneStarM
Re: Mainfile.php Read-Only?
  • 2006/10/30 4:20

  • LoneStarM

  • Just popping in

  • Posts: 3

  • Since: 2005/9/2 1


Quote:

jdseymour wrote:
You are correct McNaz, chmod 0444 should give write privileges (W) to nobody even the owner. Hence the read only attribute.


Does the warning (red banner with warning message every time I sign in as "admin" i.e. *.com/admin.php) mean I have something wrong in my setup page??
If 0644 is correct, why is XOOPS system giving me [owner/admin] the warning??

8
LoneStarM
Re: Mainfile.php Read-Only?
  • 2006/10/30 4:21

  • LoneStarM

  • Just popping in

  • Posts: 3

  • Since: 2005/9/2 1


Quote:

jdseymour wrote:
You are correct McNaz, chmod 0444 should give write privileges (W) to nobody even the owner. Hence the read only attribute.


Does the warning (red banner with warning message every time I sign in as "admin" i.e. *.com/admin.php) mean I have something wrong in my setup page??
If 0644 is correct, why is XOOPS system giving me [owner/admin] the warning??

9
jdseymour
Re: Mainfile.php Read-Only?

You need to change the permissions of mainfile.php to chmod 0444 to make it read only. The red banner will be gone then.

10
Dave_L
Re: Mainfile.php Read-Only?
  • 2006/10/30 12:24

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:

LoneStarM wrote:
I downloaded "mainfile.php" - found it already "read only" reset it to same and uploaded it.


Depending on how you uploaded it, the permissions may not have been preserved.

Also, did you upload it to a Windows server or a Linux server?

Login

Who's Online

345 user(s) are online (312 user(s) are browsing Support Forums)


Members: 0


Guests: 345


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits