1
donkey
Unix 444 win32 read only problems..I can't change the permissions?
  • 2005/3/11 10:51

  • donkey

  • Just popping in

  • Posts: 4

  • Since: 2005/3/9 2


When I firts got my new XOOPS site up and running, I had two of these notices in my administartion page

WARNING: File /home/name/public_html/eng/mainfile.php is writeable by the server.

Please change the permission of this file for security reasons.
in Unix (444), in Win32 (read-only)

One was for a file that I was able to make read only as it says, however this one is persistant at remaining read and write.
I am working on a MAC.

Does anyone have any helpful suggestions?

2
soquili
Re: Unix 444 win32 read only problems..I can't change the permissions?
  • 2005/3/12 8:42

  • soquili

  • Just popping in

  • Posts: 9

  • Since: 2005/2/27


Hi--

If you are hosted on a Linux Server, you can CHMOD your file permissions via your FTP Client. If you are on a WinServer then you need to contact your host tech support regards how to go about CHMOD in the CP ver. you have. Most WinServer CPs I have dealt with only have limited parameters for file permissions on their File Managers.

For instance, in WS_FTP,(Linux/Unix) you right click on your file, then >Properties> Change Modes and change them there on the Server side.

Hope this is what you are looking for and helps you.

3
donkey
Re: Unix 444 win32 read only problems..I can't change the permissions?
  • 2005/3/23 8:39

  • donkey

  • Just popping in

  • Posts: 4

  • Since: 2005/3/9 2


Thanks for the help.

I happen to be working on Mac, which seems to be a combination of the Win and Linux/ unix system. I can change it but then when I go to save, it switches back to the same read only settings.

My guess is that I will need to check with my host as you say.

Thanks a lot for hte advice.

4
therock
Re: Unix 444 win32 read only problems..I can't change the permissions?
  • 2005/3/23 9:14

  • therock

  • Just popping in

  • Posts: 38

  • Since: 2005/2/2 2


I run this command and it work for me.
<?php
chmod("mainfile.php", 0444);
?>
Save that to a file.

I crated a file an uploded that to the the server and just typedhttp://www.mysite.com/nameofthefile.php

5
acidrain
Re: Unix 444 win32 read only problems..I can't change the permissions?
  • 2006/4/15 18:58

  • acidrain

  • Just popping in

  • Posts: 1

  • Since: 2002/12/10


thanks rock, I had the same problem, your method just solved it.

6
hamood
Re: Unix 444 win32 read only problems..I can't change the permissions?
  • 2006/6/20 11:59

  • hamood

  • Just popping in

  • Posts: 11

  • Since: 2004/3/11


Quote:
by therock on 2005/3/22 21:14:09

I run this command and it work for me.
<?php
chmod("mainfile.php", 0444);
?>
Save that to a file.

I crated a file an uploded that to the the server and just typedhttp://www.mysite.com/nameofthefile.php


Ok but My mainfile.php is in subdomain !!

what should i do ! ?

7
Will_H
Re: Unix 444 win32 read only problems..I cant change the permissions?
  • 2006/6/20 12:58

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


it would be the samehttp://www.yourdomain.com/subdomain/nameoffile.php

or

http://subdomain.yourdomain.com/nameoffile.php


You may also have not given yourself full rights when you created your user and database.

You can log into cpanel, or your particular panle. Enter "File Manager" navigate to your root folder and click "mainfile.php". on the right hand side you will see the option to change permissions.

8
paperfrog
Re: Unix 444 win32 read only problems..I cant change the permissions?
  • 2006/6/30 6:15

  • paperfrog

  • Just popping in

  • Posts: 1

  • Since: 2006/6/30


Good tip to find so easily at 1:30 in the morning with a busted site.

Turns out my FTP client is not properly handling permissions. That reminder about my CPanel was appreciated. Thanks.

Login

Who's Online

154 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

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

Latest GitHub Commits