LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 11-10-2006, 09:13 AM   #1
joshnya
Member
 
Registered: Feb 2003
Location: Boston, MA
Distribution: RedHat 9
Posts: 39

Rep: Reputation: 15
Copy directory from Linux box to Windows Share


I have a directory on a Linux box that I'd like to copy over to a Windows share. I'd like to copy all the files in the directory including all subdirectories (preserving permissions). Is there a way to issue a "cp" command as "root" and copy these files via UNC path or do I have to mount the drive?

If I have to mount the drive, how do I mount a Windows share drive prior to issuing the CP command?

Thanks.
 
Old 11-10-2006, 09:33 AM   #2
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Open Suse 10.1, Ubuntu (Feisty Fawn)
Posts: 87

Rep: Reputation: 15
cp -apr will works maybe?
here what i read in the manual:
-a : archive
-r : recursive, so directories are also copied
-p : preseve (ownership, timestamp)

Last edited by lbdgwgt; 11-10-2006 at 09:34 AM.
 
Old 11-10-2006, 12:58 PM   #3
joshnya
Member
 
Registered: Feb 2003
Location: Boston, MA
Distribution: RedHat 9
Posts: 39

Original Poster
Rep: Reputation: 15
After reasearching....
I enabled the guest account on the Windows box and was able to mount the drive.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share Windows modem connection with Linux box? Toronto Linux - Networking 3 09-18-2005 01:13 AM
acces windows share from my linux box jb_jauvin Slackware 6 03-30-2005 08:00 PM
windows share automatically mount on linux box emailssent Linux - Networking 11 11-01-2004 03:02 AM
(Windows) Only one Linux box can mount a smb share Artimus General 1 07-21-2004 12:12 PM


All times are GMT -5. The time now is 08:25 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