LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 08-01-2007, 05:57 AM   #1
cornish
Member
 
Registered: May 2005
Location: Sussex, England
Distribution: Ubuntu 7.10
Posts: 131

Rep: Reputation: 15
copy files from XP to /var/www


I have created my server now everything is up and running, but I would like to know how I copy files from Windows XP PC to the server I have been looking into samba and cant quite put hand on it can someone help?
 
Old 08-01-2007, 06:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well we can't help specifically from the little information you've provided, but if this is a simple one off task, use winscp from the xp machine to copy to linux over ssh, which is probably already running.
 
Old 08-01-2007, 06:12 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Personally I would use scp (file transfer over ssh connection). It is rather simple, secure and more predictable than SMB. For this you need a running ssh server (I guess it is easy in SuSE). /var/www should be owned by a dedicated user (it would better be separate from web server user, who needs only reading files) who can have home directory there. Check that PuTTY (a good and well-known Windows SSH client, it is free software with MIT license) successfully logs in and you can write in /var/www while ssh-ing as this user. Now you have to either use pscp (bundled with PuTTY, has documentation) or a graphical tool, like WinSCP.
 
Old 08-01-2007, 06:40 AM   #4
cornish
Member
 
Registered: May 2005
Location: Sussex, England
Distribution: Ubuntu 7.10
Posts: 131

Original Poster
Rep: Reputation: 15
Could I share the /var/www folder then create a mapped drive in windows?
 
Old 08-01-2007, 07:55 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well that's what samba is for.
 
Old 08-01-2007, 08:53 AM   #6
cornish
Member
 
Registered: May 2005
Location: Sussex, England
Distribution: Ubuntu 7.10
Posts: 131

Original Poster
Rep: Reputation: 15
Cheers mate thanks for that

I needed help with the configuration and shell commands to do it, in the end though I just installed webmin
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I give a user permission to save files to /var/www/html? rotnay6000 Linux - Newbie 10 07-14-2009 08:45 PM
Problem transfering files using SCP to /var/www/html YAOMK Linux - Networking 2 10-14-2006 06:03 AM
OpenBSD /var/www files gone Harpune *BSD 0 11-04-2005 01:06 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - General 2 09-25-2004 01:29 AM
Can't save files to /var/www/html/ Panopticon Linux - Newbie 14 09-12-2003 02:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration