Associating "Public" permission with a windows user or group for CHMOD commands.
|Reported by:||OruchReis||Owned by:|
|Keywords:||CHMOD, windows user, iis user||Cc:|
|Component version:||Operating system type:||Windows|
|Operating system version:|
As you know, CHMOD command is for Unix like systems. But there is a solution for Windows. And the ftp servers that support custom SITE commands can do CHMOD command. If Filzezilla server supports assigning "public", "group" and "owner" permissions to a windows user or group, we can use chmod commands even if the os is windows. But how? The answer is here:
IIS has anonymous users to access the file system. For example, if a php script can access to a folder, it can access via iis_domain.com user which is an anonymous user account in Windows. And IIS run php script with this user. So, if iis_domain.com user doesn't has any write access to a folder, php script can't write to this folder. In unix, the user can use CHMOD to give write permission to public (anonymous) user.
So, If there is an option in filezilla server, we can assign a windows user to "public" permission of CHMOD. For example, we can assign iis_domain.com to "public" permission, and if we send,
SITE CHMOD xx6 A_Folder
filezilla server will execute this:
cacls.exe A_Folder /E /G "iis_domain.com":C
So CHMOD can be used in windows host. It is very very useful for shared web hosting.
Every chmod's public permission command has equivalent in windows permission:
xx4 => :R (Read)
xx6 => :C or :RW(Change)
xx7 => :F (Full)
xx2 => :W (Only Write)
xx1 => :X (Only Execute)
xx5 => :RX