General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 17th, 2003, 09:09 AM
surfergirl surfergirl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Turks & Caicos Islands
Posts: 13 surfergirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
World write on Win2k server

I had a script written by a Unix man to take form mail results from and write them to a specific file on my Win2k server. The server is not allowing the script to write. I have the folder permissions set to everone write.

I thought it may be due to the site certificate but tested it on another site and it still won't write.

What do we need to do here - I'm using IIS?

Reply With Quote
  #2  
Old July 17th, 2003, 10:42 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
It depends on what is triggering the script, but it sounds like you need to let IUSR_YourMachineName (IIS's "user") have write access to the folder/file

Reply With Quote
  #3  
Old July 17th, 2003, 11:10 AM
surfergirl surfergirl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Turks & Caicos Islands
Posts: 13 surfergirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I just tried that - no luck. Any other possibilities?

Reply With Quote
  #4  
Old July 17th, 2003, 11:14 AM
surfergirl surfergirl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Turks & Caicos Islands
Posts: 13 surfergirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
what about giving write properties to SYSTEM? would that reap havoc or be safe?

Reply With Quote
  #5  
Old July 19th, 2003, 08:49 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
surfergirl: do you have a profile setup for the script? (username/password that it uses to log in) if not, make one, and give it full permision to that directory only, and allow inheretable permissions on files within that directory. Are you using AD? and what webserver are you using to write the script? IIS or Apache? or?

How are you trying to write the file? Is it writing to a directory on a local file share or are you trying to write it remotely via a web page/vpn/etc?

Reply With Quote
  #6  
Old July 21st, 2003, 09:09 AM
surfergirl surfergirl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Turks & Caicos Islands
Posts: 13 surfergirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Justin - what is AD? We have IIS on Win2k. Its a perl script file in the web folder.

We got it working by writing a directory on the root that is temp but I would prefer it to write to a specific dir within the website folder. Does that cause any lightbulbs to go on for you? I'm sure its simple, I just don't know enough about IIS to figure it out.

Reply With Quote
  #7  
Old July 21st, 2003, 11:22 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
AD is the type of domain that you're on, if you're not using that then I'm assuming that you're using the default domain structure.

Have you tried making a folder and setting the owner to the be equal to IIS?

Reply With Quote
  #8  
Old July 21st, 2003, 11:33 AM
surfergirl surfergirl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Turks & Caicos Islands
Posts: 13 surfergirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have the folder permissions set to IUSER_webserver can write. Webserver is the name of the machine.

Reply With Quote
  #9  
Old July 21st, 2003, 03:10 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
give webserver full permissions, not just write.. they need modify as well

Reply With Quote
  #10  
Old July 21st, 2003, 04:26 PM
surfergirl surfergirl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Turks & Caicos Islands
Posts: 13 surfergirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The permissions have been wide open on this particular folder but it doesn't seem to allow writing.

I hate say I dont know the password for IUSR_webserver ----so if I change it what other default settings on IIS will it mess up?

Reply With Quote
  #11  
Old July 21st, 2003, 08:19 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
No idea about the settings if you change the password... is this on a local machine or is it remote?

Reply With Quote
  #12  
Old July 21st, 2003, 09:28 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
IUSR_webserver is a system account, and doesn't need changing.

When you set the folder permissions, did u select the box which set propegate down for files and subfolders?

Reply With Quote
  #13  
Old July 22nd, 2003, 08:26 AM
surfergirl surfergirl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Turks & Caicos Islands
Posts: 13 surfergirl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I put the permission on the acutal folder which is a couple levels down from the root of the website.

Reply With Quote
  #14  
Old July 22nd, 2003, 10:40 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Have you thought about putting a folder within the root of the web server folder that is only accessable if you are authenticated? maybe if you put the folder within the root then it will be able to write... not sure about that though... Haven't worked with IIS much, more of an apache person here

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > World write on Win2k server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |