Jump to content

Recommended Posts

I know Windows does not support CHMOD.  >:(

 

I've looked around to find out if there is an ftp_site command or something that can still edit the permissions for a Windows file and/or directory.

Does anyone know of any commands or methods that can change the permission attributes?

Link to comment
https://forums.phpfreaks.com/topic/115829-windows-and-permissions/
Share on other sites

I would like to do this automatically. Most FTP software do not support the changing of permissions on Windows. You have to actually remotely access the server and change the attributes from there on in, which is a pain.

 

I need to know of a command that I could use with an ftp command function such as ftp_site() which allows me to do this.

Does ftp_chmod help?

 

No. As I've said, CHMOD is not supported by Windows (although I have been aware that in some cases people have gotten some things to work with CHMOD but it's incredibly unstable).

 

 

Erm.. ftp_chmod is not chmod its ftp_chmod they are not the same ftp_chmod runs vai the ftp protocal, which is the same as

remotely access the server and change the attributes from there on in,

 

which is the command you asked for

 

I need to know of a command that I could use with an ftp command function such as ftp_site() which allows me to do this.

I'm not talking about the chmod() function. I'm talking about CHMOD in general.

FTP Protocols will still not work CHMOD for Windows. Windows has a different way of working with permissions. Therefore ftp_chmod() will not work either.

 

There has to be a command line to be able to change the permissions. But I'm not able to find a solution to this.

ftp_chmod works fine on a windows server running filezilla server!

 

If you apache needs to follow these permissions then your need to use a program execution function, and probably change the user that the apache service uses,

 

may i ask what your trying to do ?

All I'm doing is creating directories and then setting the permissions equivalent to 0777 to those new directories. So users can upload images to their directories.

 

It would just save time if staff members didn't have to set the permissions of every folder manually.

I'm trying to test setting the permissions in Windows but the only group that won't apply is the CREATOR OWNER group. Which seems like it could be causing the problem.

 

Seems strange as the settings were applied in the past but must of reset for some reason.

 

Do you know why it won't apply the settings?

Humm are the permission setting them selfs to nothing and are you using Vista/Longhorn by any chance ?

 

you could try resetting the ACL (access control list)

**WARNING**

take note of the permissions first.. this may not work

icacls c:\path\to\www /grant Users:(CI)(S,WD,AD,X)
icacls c:\path\to\www /grant "CREATOR OWNER":(OI)(CI)(IO)(F)

Note that CREATOR OWNER is granted ownership

icacls info

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.