Link to home
Start Free TrialLog in
Avatar of Patrick Lizama
Patrick LizamaFlag for United States of America

asked on

Linux copy

Unable to copy or move files in a linux folder into a mounted mapped network drive.  Getting error file or directory does not exist but yet it does and can display files in the shared folder.
Avatar of netcmh
netcmh
Flag of United States of America image

Display is one thing, but does the user you're using to copy/move the files across, have the necessary write permissions to the network folder?

once that's figured out, a simple

cp -R -u -p /source /destination

Open in new window


should suffice.

You can also copy it as root to maintain permissions/ownership

cp -au

Open in new window


Also, have you looked at rsync?
Avatar of Patrick Lizama

ASKER

yes user is super user and should not have a problem. I did try this command but no luck.
Can you post the exact command you are issuing?  Also can post the output from the df command, and ls  -l from both the target and source directories.
Is the share on windows, if so then you need to install samba
ASKER CERTIFIED SOLUTION
Avatar of Patrick Lizama
Patrick Lizama
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial