LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-29-2010, 08:55 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 524

Rep: Reputation: 32
Copy files from Linux onto Windows


Am in need to do a file copy (ie cp, scp, etc) from a Linux box onto a Windows box. I understand that we can do the following on the Linux box:
Code:
smbmount //winpc/shared /mnt/share
However, I'm getting the following:
Code:
/usr/bin/smbmount //hostname.com/abc/def /usr/local/mountpoint
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
      No such file or directory
Can't load /etc/samba/smb.conf -run testparm to debug it
Password:
Anonymous login sucessful
25788: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed
1) The file /etc/samba/smb.conf indeed doesn't exist. But since it does say "Anonymous login sucessful" I guess it's fine?
2) The Windows folder is actually a Sharepoint folder accessible by anyone. However, I can't login to the Windows box as an admin to share it and actually give it a name. Correct me if I'm wrong but if it's accessible by everyone I'd imagine that it's shared, right?
3) If I type file://hostname.com/abc/def into my Windows Explorer, it does open up the directory.

Any idea how to fix this?
 
Old 11-29-2010, 09:45 AM   #2
grob115
Member
 
Registered: Oct 2005
Posts: 524

Original Poster
Rep: Reputation: 32
Not sure what's going on as I can't find /usr/sbin/smbd and /usr/sbin/nmbd as suggested on the following site:
http://tldp.org/HOWTO/SMB-HOWTO-5.html

However, I am able to run:
/usr/bin/smbclient -L <hostname>

How can some Samba commands be available when the daemons aren't?
 
Old 11-29-2010, 12:44 PM   #3
jlcasado
LQ Newbie
 
Registered: Oct 2010
Location: Madrid - Spain
Distribution: RHEL
Posts: 26

Rep: Reputation: 1
Hi,

What rpm packages for samba are installed?

Run rpm -qa |grep -i samba

Have you tried just a mount instead of using smbmount?

And don't worry, you don't need samba daemons running for mounting a windows share.

best regards
jose

Last edited by jlcasado; 11-29-2010 at 12:45 PM.
 
Old 11-29-2010, 01:08 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,754

Rep: Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719
samba consists of several packages and basically the main ones are common, client and server. smbclient is part of the client package and independent of the server. Make sure you are using the correct share name
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to copy windows files datas into linux ravigovind29 Linux - Newbie 4 09-29-2010 12:53 PM
Copy text files from linux to windows Idiosyncra3y Linux - Newbie 11 06-08-2010 01:42 PM
copy files from Windows to Linux tigertim71 Linux - Newbie 3 01-12-2009 10:56 PM
copy files form Linux to Windows OS zillah General 4 02-02-2006 03:24 PM
copy files from linux to windows turbo_acura Linux - General 4 11-23-2004 01:46 PM


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