Forum Moderators: phranque

Message Too Old, No Replies

Problem changing CHMOD on Windows Xp PRo

Windows XP Pro, Apach 2.0.49, cuteftp pro 6

         

tauras911

10:07 pm on Aug 4, 2004 (gmt 0)

10+ Year Member



Hi all,

I have ran into a problem changing my permissions with CHMOD on my local server. I am working on Windowa XP Pro, Apache 2.0.49 and cuteftp pro 6.

I have changed permissions before without a problem on my window machines. I am not certain if I changed them without a problme on this particular machine.

Anyways, heres the problem:
When I ftp in and change the CHMOD (for expample from 644 to 755) it says the change was sucessful and does not show any errors, but if I chmod the same file again it returns shows as 644. Even if I log out and come back in, it shows as 644. This occurs with everyfile I have tried to modify.

The sucky thing is, I am not sure if it is a windows, apache or ftp problem.

-I am logged in as administrator. so as far as I know, I should have no problems writing to these files.
-I even checked the file attributes to see if they were marked read only, but nope, they are apparently open to modifiaction.

This problem is tough to track down on the web becasue there is so much info on chmod. But I have found other people with this problem, just no clear solution in the posts.

One recommedation was to use smartftp over cuteftp, but smart ftp does the same thing.

Another was to make a php script to change permissions, This worked once, but not the second time (when I installed an oscommerce package.) Anyways, I would like to use an ftp if possible =)

Thanks in advance for any ideas!

T

wilderness

12:01 am on Aug 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to Webmaster World.

Here's a google groups on "XP+chmod+permissions"

[groups-beta.google.com...]

tauras911

3:28 am on Aug 9, 2004 (gmt 0)

10+ Year Member



so according to what I read, the unix commands have no effect on microsoft window files? Apparently, I can set permission on the files though ms windows by right clicking on the file, properties and setting the permissions per user/group? Did I understand that correctly? If I set a permission in windows say of internet users, its this going to have the same or similar effects as if the chmod commads worked? thanks!

gergoe

12:00 am on Aug 11, 2004 (gmt 0)

10+ Year Member



Even is the chmod command would exists on windows it would have to no effect on the web files, because apache uses one account to fetch the files, so either you prevent or grant the access to the files. But chmod does not exists, although you can set permissions (maybe even more in details than on *nix?) through a windows shell (like Windows Explorer), but it is just not recommended unless you changed the account of the apache to a user which is not a member of the Administrators group. If you can access your files with Apache w/o any problem, then forget about the file permissions, but if you have some difficulties, then that's related to the OS, you may need to check the permissions of the higher directories. (i.e. if you have problems in the c:\test1\test2\ dir, then check the permissions of the c:\test1\test2 c:\test1 and c:\ directories)

Since the FTP standard contains the CHMOD command (because the folks made the draft were working on unix, so they built-it in), some ftp servers still uses it, but changing the permissions on a windows machine with a ftp client is just asking for trouble, mainly because most of the server applications are running with system privileges, which means that if you set a wrong permission, you can block the access to a file completely, no other processes could reach it anymore (like apache), second, because you can not be sure that what the ftp server will do with your chmod command.

What is the problem, why do you want to change file permissions at all?

tauras911

7:01 pm on Sep 4, 2004 (gmt 0)

10+ Year Member



Thanks all.

gergoe,
Thanks for the reply. I wanted to change permissions on a windows server to use some scripts. The instructions saidf to CHMOD such and such file to 777 or 654.

Thanks agian for the relpies!

T

py9jmas

7:09 pm on Sep 4, 2004 (gmt 0)

10+ Year Member



The MS Windows security model and the UNIX security model are fundamentally different. Trying to get one system to act like the other always leads to problems. Like trying to follow UNIX instructions on a Windows server.
Since the FTP standard contains the CHMOD command

No it doesn't. Chmod on ftp clients is handled by using the SITE ftp command. SITE allows for executing site specific commands via ftp, chmod just happens to be a commonly recognised site specific command ;-)