Windows Permissions for Dummies
Posted: 30 August 2004 01:06 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  50
Joined  06-18-2002

Okay… I’m trying to install Expression Engine on my department’s server; we’re currently running pMachine just fine, but there’s some added power to Expression Engine that I’d like to use for some new features. 

Now, we all know that there’s comes a step when one must CHMOD three files and three directories.  Normally, I’d just use my FTP program, except I cannot use FTP to CHMOD the files to the appropriate settings because Windows doesn’t permit that.  Bad Windows!

Okay.  I understand that, and I’ve got administrative access But I’m somewhat clueless as to the *specific* steps one must take to change permissions.  The OIT staff on campus either don’t know or are unwilling to help, and Google has provided some less than useful hits.

So… I’m running Windows 2000 with IIS.  How the *bleep* do I change the file permissions to 666 and 777?!?

Profile
 
 
Posted: 30 August 2004 08:56 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1064
Joined  08-01-2002

I have no idea if IIS will introduce anything on its own to this as I try and shy away from IIS (ok, I avoid both Windows and IIS) but I believe (as I don’t have VirtualPC handy right now to look) if you right click on the folder/file and select Properties, there should be something in the tabs to allow read/write/execute permissions to be set.  Maybe a Windows user can lend a hand.

 Signature 
Profile
 
 
Posted: 31 August 2004 03:30 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  11695
Joined  04-29-2002

Here’s some information:

http://www.xav.com/scripts/installer/3008.html

Here is a description of all permissions solutions and how to test them:

global read-write

If your web hosting provider makes the entire file system be read-write for web processes, then you will have no permissions problems. This can be done by giving the IUSR_Machine account Read/Write privileges to the web root folder. This is a reasonable solution if you have a dedicated web server that nobody else logs in to or uses for hosting.

Note that if you experience a permissions problem, then that means your web host is not configured for global read-write. You may want to contact your web host and request that they configure their server in this way.

setuid

Your web hosting provider can make all files and folders in your root web folder be writable by your own web processes. This is one of the most secure and easy-to-maintain configurations. It is identical to setuid/suexec/CGIWrap on Unix hosts.

In this model, your web host will modify the IIS server settings so that your web site is accessed using your Windows login account, instead of the default IUSR_Machine account. By doing this, all scripts that run in your site (CGI, ASP, etc.) will run under your user account and will be able to update any files or folders. You will still be protected against hacking from the other web sites on the same server, since their processes will run under a different account context (either IUSR_Machine or their own personal accounts).

Note that if you experience a permissions problem, then that means your web host is not configured for setuid. You may want to contact your web host and request that they configure their server in this way.

custom control panel

Your web hosting provider may have a web-based control panel that lets you set file permissions. These control panels are proprietary (each host must develop its own) and so you’ll need to contact your host to see if they have one, and to see how it works.

Web hosting company xo.com uses a custom control panel. See Installing CGI at xo.com for more information on using it.

admin setuid request

If your web server is running a pure Microsoft solution (with Microsoft Windows operating system, Microsoft IIS web server, and Microsoft FTP service), and if the web server allows for HTTP Basic authentication, then you should be able to force your own user context on a case-by-case basis. This is done by installing a CGI or ASP script which challenges you for username and password, and then uses those credentials to change its own process context from IUSR_Machine over to your user account. Once it is executing within your account context, it can take administration actions such as changing file permissions with the command-line cacls program.

FDSC makes available the free perms.asp script for doing this. If you use the auto-installer, it will perform a similar action using nph-installer. The perms.asp script is slightly more powerful because it can execute if HTTP Basic authentication is disabled, but another one such as NTLM is enabled. The auto-installer’s nph-installer script requires HTTP Basic.

preset data area

Some web hosts provider a default folder that is writable. For example, when you log in to your account over FTP, you will see folders labeled “data”, “db”, “logs”, and “web”. All of your web files will go into the read-only /web/ folder, and any script data files will need to be stored within the read-write /data/ or /db/ folders.

In these cases, you should install the script and then follow the instructions provided with each script regarding changing the location of the data folder. This will involve moving the script data folder into your private data area, and then updating the script files to reference the new location.

using Front Page folders

If the Front Page server extensions are installed on your site, then you will probably have a folder named /_private/ at the top level of your site, and that folder will probably be script-writable. You can store your data files within that folder, using the same approach described in present data area.

manual setting permissions

Visit the actual server computer (i.e., be sitting in front of it, logged in). Alternately, you can contact somebody who has local access and ask them to take these steps for you.

Select the file or folder to be made writable. Right-click, choose Properties, then Security. Customize all permissions.

An equivalent method is to open a command prompt, navigate to the file or folder, and use the “calcs” command-line tool to manipulate permissions. Both “calcs” and the Security tab are equivalent interfaces to the same underlying functionality.

You can also wrap a set of “calcs” commands in a batch file and run the batch file. This is useful if you are giving instructions for someone else to carry out. Just create a pre-programmed bat file and ask them to run it. All of our programs come with a pre-programmed “setperms.bat” file.

mapped drive

Ask your web host if you can create a mapped drive from your local Windows computer to their Windows server. You will need to connect from a client Windows computer running NT, 2000 or XP.

Once you’ve connected over the mapped drive, you can use the Security Properties or calcs command as in the above example.

Mapped drives also make it much easier to transfer files between client and server. You can use this instead of FTP.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 31 August 2004 06:40 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  50
Joined  06-18-2002

*sigh*

My IT department is useless for assistance.  I’ve tried the properties route with little luck, and I don’t know enough about setuid.  I’m not sure if the global read-write would be secure.  I’m the only administrator and FTP user, but others would have access to Expression Engine accounts, plus there’d be members and commenters.

I’m going to delete everything and try again.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 62439 Total Logged-in Users: 26
Total Topics: 76704 Total Anonymous Users: 15
Total Replies: 414406 Total Guests: 590
Total Posts: 491110    
Members ( View Memberlist )