LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Copy files from Linux onto Windows (http://www.linuxquestions.org/questions/linux-server-73/copy-files-from-linux-onto-windows-847226/)

grob115 11-29-2010 08:55 AM

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?

grob115 11-29-2010 09:45 AM

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?

jlcasado 11-29-2010 12:44 PM

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

michaelk 11-29-2010 01:08 PM

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


All times are GMT -5. The time now is 12:14 AM.