LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache writing to smb share on windows box? (https://www.linuxquestions.org/questions/linux-server-73/apache-writing-to-smb-share-on-windows-box-662847/)

darthfoolish 08-14-2008 04:22 PM

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!

TB0ne 08-14-2008 04:49 PM

Quote:

Originally Posted by darthfoolish (Post 3247859)
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.

kenoshi 08-14-2008 04:51 PM

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.


All times are GMT -5. The time now is 08:56 AM.