LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-15-2003, 10:06 AM   #1
buddy
LQ Newbie
 
Registered: Dec 2002
Location: Montreal
Distribution: Mdk9
Posts: 20

Rep: Reputation: 0
Exclamation 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
 
Old 01-15-2003, 10:36 AM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
man ln
 
Old 01-15-2003, 11:07 AM   #3
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
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.
 
Old 01-15-2003, 05:36 PM   #4
buddy
LQ Newbie
 
Registered: Dec 2002
Location: Montreal
Distribution: Mdk9
Posts: 20

Original Poster
Rep: Reputation: 0
You Rock mate! Works like a dream!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Storing BibTex bst files in home directory drben Linux - Software 1 11-01-2005 02:31 PM
Trying to use a vector for storing pointers... (C++) Dark Carnival Programming 7 08-09-2005 05:40 PM
Tk: Storing Output of Program Kenji Miyamoto Programming 4 06-25-2005 01:57 AM
Storing Strings ToothlessRebel Programming 4 09-05-2004 03:16 AM
Storing /home in CVS Cyth Linux - General 2 01-03-2003 03:10 AM


All times are GMT -5. The time now is 03:35 AM.

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