LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Storing files from linux to NT (https://www.linuxquestions.org/questions/linux-general-1/storing-files-from-linux-to-nt-41573/)

buddy 01-15-2003 10:06 AM

Storing files from linux to NT
 
Heres the rundown...

I have a linux box acting as a web server and have written a file upload script which works fine when uploading files to the linux box itself.

However what I would like to do is have the access come through my linux box - and store on an NT machine on the network.

My question is: How can I point a directory on my linux box to a directory on the NT machine?? Any ideas? I am running samba - if that helps -

Cheers
Buddy

jetblackz 01-15-2003 10:36 AM

man ln

SlickWilly 01-15-2003 11:07 AM

Not helpful. Not helpful at all..

ln will ln NOT do what this guy wants. I suggest you quit 'helping' people and go be terse somewhere else.

As for the solution to your problem Buddy, yes - samba is what you need. At least, the samba CLIENT.

Create a directory under your web documents for the files you want uploaded to your NT box.

Make sure you have the samba *client* software.
/usr/bin/smbclient

then issue the command :

smbmount //<NT MACHINE>/<NT SHARE> /www/uploaddirectory -o username=<who you log in as>

eg :

smbmount //Binky/Uploads /www/uploads -o username=administrator

You'll need to set the rights on the directory on the NT machine correctly for the user logging in, and also share it out :)

This will pull the NT directory over to your Linux box, mount it in the correct directory, and then any files you put in that directory will be written on your NT box

If you don't have it you can find the samba software at http://master.samba.org/samba/ftp/Bi...rake/RPMS/9.0/

samba client is what you want..

Slick.

buddy 01-15-2003 05:36 PM

You Rock mate! Works like a dream!


All times are GMT -5. The time now is 06:21 PM.