LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2010, 12:12 PM   #1
florenceit
LQ Newbie
 
Registered: Jul 2010
Location: MA
Distribution: was buggy ubuntu 10.04 LTS, now happy with MINT
Posts: 14

Rep: Reputation: 0
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.

any ideas would be appreciated.
 
Old 08-27-2010, 09:46 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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?
 
Old 08-28-2010, 09:15 PM   #3
florenceit
LQ Newbie
 
Registered: Jul 2010
Location: MA
Distribution: was buggy ubuntu 10.04 LTS, now happy with MINT
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by MS3FGX View Post
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!
 
Old 08-28-2010, 09:18 PM   #4
florenceit
LQ Newbie
 
Registered: Jul 2010
Location: MA
Distribution: was buggy ubuntu 10.04 LTS, now happy with MINT
Posts: 14

Original Poster
Rep: Reputation: 0
Solved

hi
actually found the answer here, going to try these things.

http://linux.die.net/man/8/mount


thanks for pointing me in the right direction!


matt
 
  


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
Command line progress bar for copying Maverick1182 Linux - Newbie 6 03-03-2012 12:55 AM
Suse 10 smb asking for password when security = share therapist Linux - Networking 5 05-19-2006 04:52 AM
Mozilla Linux Command Line URL Parsing Security Flaw Reported win32sux Linux - Security 9 10-06-2005 06:39 AM
share directories from command line tarheel92x Linux - Networking 1 09-07-2004 09:09 PM
share a samba directory with the command line Mugatu Linux - Software 2 01-08-2004 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:36 AM.

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