Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: Sandwich on January 17, 2002, 07:32:00 am

Title: OT - Apache for Windows file permissions help
Post by: Sandwich on January 17, 2002, 07:32:00 am
Anyone know how to set file permissions in the Windows version of Apache?

------------------
America, stand assured that Israel truly understands what you are going through.

Know how to use Rhino3D? Want to put your ships into Freespace 2? You've come to the right place (//"http://www.geocities.com/sandvich/fs2/rhino_fs2/")!

"He who laughs last thinks slowest."
"Just becase you're paranoid doesn't mean they're not out to get you."
"To err is human; to really screw up you need a computer."
Creator of the Sandvich Bar (//"http://www.geocities.com/sandvich/index.html"), the CapShip Turret Upgrade, the Complete FS2 Ship List and the System Backgrounds List (all available from the site)
Title: OT - Apache for Windows file permissions help
Post by: Sandwich on January 18, 2002, 09:51:00 am
*bump*
Title: OT - Apache for Windows file permissions help
Post by: Sandwich on January 19, 2002, 04:57:00 am
Ok, last *bump*...  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/frown.gif)

------------------
America, stand assured that Israel truly understands what you are going through.

Know how to use Rhino3D? Want to put your ships into Freespace 2? You've come to the right place ("http://www.geocities.com/sandvich/fs2/rhino_fs2/")!

"He who laughs last thinks slowest."
"Just becase you're paranoid doesn't mean they're not out to get you."
"To err is human; to really screw up you need a computer."
Creator of the Sandvich Bar ("http://www.geocities.com/sandvich/index.html"), the CapShip Turret Upgrade, the Complete FS2 Ship List and the System Backgrounds List (all available from the site)
Title: OT - Apache for Windows file permissions help
Post by: neimad on January 19, 2002, 05:41:00 am
AFAIK it cannot be done.  CHMOD commands to Windows-based FTP servers don't work, which means that it is unlikely you can do anything HTTP-wise either.


Neimad
Title: OT - Apache for Windows file permissions help
Post by: Admiral LSD on January 19, 2002, 02:46:00 pm
Can't you just change the permissions in the standard Windows NT manner, through the security tab in the files properties?

------------------
"Don't stop, baby, dreamin'"
"Don't stop, baby, lovin'"
"Don't stop, babe, believin'"
Wasurenaide...
"Don't stop, baby, dreamin'"
"Don't stop, baby, lovin'"
"Don't stop, babe, believin'"
...Watashi ga iru koto o.
Itsudatte soba ni iru yo.

Official NMCE www.netwerkin.com ("http://www.netwerkin.com")
Title: OT - Apache for Windows file permissions help
Post by: Sandwich on January 19, 2002, 02:55:00 pm
 
Quote
Originally posted by Admiral LSD:
Can't you just change the permissions in the standard Windows NT manner, through the security tab in the files properties?


Nope - Apache doesn't integrate with the windows shell like IIS 4/5. :-/

------------------
America, stand assured that Israel truly understands what you are going through.

Know how to use Rhino3D? Want to put your ships into Freespace 2? You've come to the right place ("http://www.geocities.com/sandvich/fs2/rhino_fs2/")!

"He who laughs last thinks slowest."
"Just becase you're paranoid doesn't mean they're not out to get you."
"To err is human; to really screw up you need a computer."
Creator of the Sandvich Bar ("http://www.geocities.com/sandvich/index.html"), the CapShip Turret Upgrade, the Complete FS2 Ship List and the System Backgrounds List (all available from the site)
Title: OT - Apache for Windows file permissions help
Post by: mikhael on January 19, 2002, 07:30:00 pm
ACtually, to a certain degree you CAN use NTFS permissions to control Apache access to files on your server. Remember: Apache runs as a user (and you certainly better be running it as an unpriveleged user!). You can give/deny permissions crudely by assigning them to the Apache user. This is rough.

The better method, the Apache method, is to create .htpasswd and .htaccess files. .htpasswd (which can be named almost anything) is a file that contains a list of usernames and some encrypted (via crypt()) passwords. .htaccess describes the sorts of access users will have, as well as the name and location of the password file to use. In order to allow the use of .htaccess files, you need to do an AllowOverride in your httpd.conf file, in the section pertaining to the server, virtual server, or alias in question.

All that said, I'd recommend against Apache on NT/2k/XP, if only because it doesn't integrate with the NT's security services.

------------------
--Mik http://www.404error.com ("http://www.404error.com")
ruhkferret on ICQ/AIM

"Your guy was a little SQUARE! You had to use your IMAGINATION! There were no multiple levels or screens. There was just one screen forever and you could never win the game. It just kept getting harder and faster until you died. JUST LIKE LIFE." --Ernie Cline

[This message has been edited by mikhael (edited 01-19-2002).]
Title: OT - Apache for Windows file permissions help
Post by: Sandwich on January 20, 2002, 02:27:00 am
 
Quote
Originally posted by mikhael:
ACtually, to a certain degree you CAN use NTFS permissions to control Apache access to files on your server. Remember: Apache runs as a user (and you certainly better be running it as an unpriveleged user!). You can give/deny permissions crudely by assigning them to the Apache user. This is rough.

The better method, the Apache method, is to create .htpasswd and .htaccess files. .htpasswd (which can be named almost anything) is a file that contains a list of usernames and some encrypted (via crypt()) passwords. .htaccess describes the sorts of access users will have, as well as the name and location of the password file to use. In order to allow the use of .htaccess files, you need to do an AllowOverride in your httpd.conf file, in the section pertaining to the server, virtual server, or alias in question.

All that said, I'd recommend against Apache on NT/2k/XP, if only because it doesn't integrate with the NT's security services.


Hmmmm, the problem is that I tried runnind IIS 5, and all it got me was a swarm of Nimda worms in the \scripts directory. So I said "screw that" and went back to Apache. Besides, I wanted to experiment with PHP/MySQL, not some M$ crap.

The reason I wanted to find out about the permissions in the first place was because I ran across a BB that uses PHP, but it needs to be able to write to files... :-/

------------------
America, stand assured that Israel truly understands what you are going through.

Know how to use Rhino3D? Want to put your ships into Freespace 2? You've come to the right place ("http://www.geocities.com/sandvich/fs2/rhino_fs2/")!

"He who laughs last thinks slowest."
"Just becase you're paranoid doesn't mean they're not out to get you."
"To err is human; to really screw up you need a computer."
Creator of the Sandvich Bar ("http://www.geocities.com/sandvich/index.html"), the CapShip Turret Upgrade, the Complete FS2 Ship List and the System Backgrounds List (all available from the site)