View Full Version : File Permissions won't change
70bowtie
11-25-2002, 08:49 PM
Hi!
Anybody have any idea why I can change the file permissions on any given folder or file and it won't happen?
I've changed a number of other ones.. successfully.
I reloaded (FTPd) the files and folder again... still the permissions changes won't happen.
They are PHP files and folders. I'm using CP to do the changing. I've repeated the successes and failures a number of times.
Thanks,
Mark
70bowtie
11-25-2002, 08:50 PM
Rev 1
The first line should say I CAN'T change.
M
don5408
11-25-2002, 10:37 PM
Hi. While there's really no reason that you shouldn't be able to change permissions via the File Manager in Control Panel (while I normally use WS_FTP LE I just changed a few permissions via the File Manager and it seemed to work OK for me) if for some reason the chmod feature isn't working in your File Manager try using WS_FTP as an alternative.
Changing permissions via WS_FTP LE
- Logon to your site using WS_FTP LE
- Right-Click on the file or folder you wish to modify the permissions for and Click CHMOD (Unix)
- Check the appropriate Read, Write and Execute boxes > Click OK
To confirm that your changes have been implemented click the "Refresh" button and then click the "DirInfo" button which will present you with a directory list including permission status.
Note that permissions in WS_FTP LE are expressed in rwx format (r= Read, w= Write, x =eXecute) rather than the three digit numerical format (644, 755, 777).
In the three-digit number format the individual numbers are derived by adding up the permissions with 1=execute, 2=write and 4=read (read, write and execute = 4+2+1, aka 7) and with each of the three numbers identifying the permissions applicable to the "owner", "group" and "other" (world).
0 (---) = no permissions
1 (--x) = execute only
2 (-w-) = write only
3 (-wx) = write and execute
4 (r--) = read only
5 (r-x) = read and execute
6 (rw-) = read and write
7 (rwx) = read, write and execute
-rw-r--r-- (644) = "I don't mind if other people can read this file, however only I should be able to write to/edit it"
-rwxr-xr-x (755) = "I don't mind if other people can read or run this file, however only I should be able to write to/edit it"
-rwxrwxrwx (777) = "Anybody can do anything they want (read, run, modify) with this file"
Directories (folders) will include a prefix of d, for example a folder which is chmod 755 would show as drwxr-xr-x, drwxrwxrwx would designate a folder with 777 permissions etc.
Hope that helps
Don
70bowtie
11-26-2002, 12:02 AM
Don,
Once again... this has been great help! I didn't know about the right click capability in WS_FTP LE!!! That's perfect!
This is weird... pulling these files using WS_FTP, they show that the permissions DID change. Back to File Mngr in CP, they're showing NOT changed. So I did some changing in FM... they show no change, so I check from FTP and they are indeed changed!?!?
In other words.. simply... They really were changing in CP FM, but they just didn't show those changes. I refreshed, I shut down and came back,,,, never changed on screen.
Any way.. I'm back to work and on with the next steps!
Thanks a bunch!
Mark
SnakEyez
11-26-2002, 12:52 PM
If you are having problems with the permissions changing send in a ticket. I know there have been a few occassions where I couldn't change permissions and it ended up being a server-side problem.
don5408
11-26-2002, 02:46 PM
"That's perfect!"
Great, happy to hear that everything worked out satisfactorily. While the fact that your File Manager doesn't seem to be reflecting your changes properly (FYI on mine as soon as I use the Change Permissions option in the left frame the main frame automatically refreshes and the chmod numbers next to the file/folder names change with no action on my part...this is actually one of the few CP modifications which I find do autoupdate without a manual refresh) is confusing it's good to know that no matter what the File Manager is SAYING it's at least DOING what you want! While I'd still use WS_FTP as my first choice at least you know that the File Manager will work in a pinch! ;-)
Enjoy!
Don
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.