Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-10-2006, 09:13 AM   #1
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?

Old 11-10-2006, 09:33 AM   #2
Registered: Aug 2006
Distribution: Ubuntu
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
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.


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

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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration