ssh command line copying from linux to smb share fails due to security
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: was buggy ubuntu 10.04 LTS, now happy with MINT
Posts: 14
Rep:
ssh command line copying from linux to smb share fails due to security
I have a netgear router (wndr3700) with a usb hard drive hooked up to it. from what i can see there are no places to add new users on the router. the shared drive is currently setup with read/write access for all.
on my ubuntu (10.04.1 lts) box i mounted the share via smbmount (and have it in fstab)and can access everything just fine from the command line.
i can copy/read/write/delete files on the shared drive from the linux command line with no issue.
now.... i have ANOTHER linux box (vps) doing backups to my ubuntu box and Im trying to put the backups into the mounted drive, but ssh is failing (error setting the timestamp on the folders it creates). .then freezes.
not sure what im missing but this should work. my ssh connection is logging in as the same account that i login locally to the box which has all rights.
I am assuming the USB drive connected to the router is FAT32 or NTFS, neither of which support the Unix style file attributes that SSH will be trying to assign to anything you copy over with it. Samba (when you are mounting it over SMB) already knows the destination filesystem won't support those extended attributes and doesn't bother trying to apply them. I am not sure why that causes the process to lock up (perhaps simply due to the fact that the relatively weak router is overwhelmed by the error messages being generated by the process), but it is certainly the cause of the errors you are seeing.
Are you using SCP to transfer files? Have you tried using the -v option to get more verbose output to see if that sheds any light on the subject? What about error logs on the router itself, is there any provision for checking the system log files?
Distribution: was buggy ubuntu 10.04 LTS, now happy with MINT
Posts: 14
Original Poster
Rep:
Quote:
Originally Posted by MS3FGX
SMB) already knows the destination filesystem won't support those extended attributes and doesn't bother trying to apply them. I am not sure why that causes the process to lock up (perhaps simply due to the fact that the relatively weak router is overwhelmed by the error messages being generated by the process),
its not locking up but any copying or setting of attributes fails, thus backup jobs, copies, ssh copies etc all fail. is there any way to mount the share under linux so that it WONT try to write permissions to files? as you say, windows/mac smb connections are smart enough to know the permissions cant be applied. how can i tell linux the same thing, to ignore any extended attributes. ? thanks for your help!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.