LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 08-14-2008, 04:22 PM   #1
darthfoolish
Member
 
Registered: May 2006
Posts: 47

Rep: Reputation: 15
Apache writing to smb share on windows box?


Hi all.

I'm running apache 2 on a SLES10 box, and I'm trying to get it to create a file on a Windows 2003 box.

Basically I have a web form which is parsed into an xml file using a python cgi script (Python is the language I'm most comfortable with).

I need this file to either be created directly on the Windows box or copied there (in an smb share). I am getting a permission denied error when trying to create or copy the file.

I am poor with permissions, especially cross platform!
 
Old 08-14-2008, 04:49 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,837

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by darthfoolish View Post
Hi all.

I'm running apache 2 on a SLES10 box, and I'm trying to get it to create a file on a Windows 2003 box.

Basically I have a web form which is parsed into an xml file using a python cgi script (Python is the language I'm most comfortable with).

I need this file to either be created directly on the Windows box or copied there (in an smb share). I am getting a permission denied error when trying to create or copy the file.

I am poor with permissions, especially cross platform!
Share the folder from the Windows box, and use the smbmount command to attach it to the Linux server. There's another thread on here that gives more detail about the smbmount command, and the man page can give you even more.
 
Old 08-14-2008, 04:51 PM   #3
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
man mount.cifs

And just mount the share where you want to file to go on your apache server, and dump your XML file to that directory.

Or you can always call smbclient to copy it over to the windows box.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Alias Samba share to a Windows box kitkit201 Linux - Newbie 2 04-18-2007 06:11 PM
writing to a smaba share with apache irvken Linux - General 3 07-08-2005 07:50 AM
(Windows) Only one Linux box can mount a smb share Artimus General 1 07-21-2004 12:12 PM
Can't access a smb share from windows digitalspillage Linux - Newbie 2 10-05-2003 09:42 AM
smb windows share need help pissy_pants Linux - Networking 4 09-04-2003 01:37 AM


All times are GMT -5. The time now is 07:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration