Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-14-2008, 05:22 PM
|
#1
|
Member
Registered: May 2006
Posts: 52
Rep:
|
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!
|
|
|
08-14-2008, 05:49 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,491
|
Quote:
Originally Posted by darthfoolish
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.
|
|
|
08-14-2008, 05:51 PM
|
#3
|
Member
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159
Rep:
|
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 01:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|