Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-29-2010, 08:55 AM   #1
Registered: Oct 2005
Posts: 540

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:
smbmount //winpc/shared /mnt/share
However, I'm getting the following:
/usr/bin/smbmount // /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
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:// into my Windows Explorer, it does open up the directory.

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

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:

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
LQ Newbie
Registered: Oct 2010
Location: Madrid - Spain
Distribution: RHEL
Posts: 26

Rep: Reputation: Disabled

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

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

Rep: Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476
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


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 06:56 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration