Welcome to the new Linux Foundation Forum!

Unable to copy file from Linux to Windows

Hi, I have a Linux platform and Windows XP platform. I have created a shared folder on Windows. I am unable to copy file from linux to my shared folder in Windows. My command is as follow:

cp

cp file.txt smb:///Deploy

Comments

  • mfillpotmfillpot Posts: 2,180
    Have you confirmed that your Linux based distribution is properly configured to communicate with the windows smb shared directory?
  • May I know how can I check if my Linux is configured properly to communicate with Windows?
  • Goineasy9Goineasy9 Posts: 1,116
    It would help if we knew more about what Linux distro you are running, but, whatever distro it is, it needs samba to communicate with windows.
    Do you have samba installed?
    Do you have smb (or smbd) enabled in the services section. In Gnome I have a Services menu in System --> Administration. If you have that in your distro you can check to see (1) if it's there and if it is (2) if it's enabled.
    I'm sorry I don't actively use samba, but a quick way to check would be to type "service smb on". I use Fedora with Gnome, and, if I type that phrase, there is no reply if samba is installed and the smb daemon is running. If it is not installed I get an error message.
    If you don't have samba installed, you can go to your administration menu, click on add/remove software, search for samba then install it.
    Since I don't know what distro or Window Manager you are using I can't be more precise in my instructions than that.

    LOL..this is under Suse Enterprise, my dumb. If your using Gnome in Suse, the above should work the same as in Fedora.
  • Mine is Linux SUSE Enterprise 10. From what I saw in the system services, there is one called "smb". But is not enabled.. will it affect anything if I enabled it?
  • This may be a silly question, but wouldn't it be much easier to use a GUI which has drag-and-drop capabilities? In Mint or Ubuntu, I just use the Nautilus file manager.

    Lee
  • mfillpotmfillpot Posts: 2,180
    The SMB or Samba service sets your system up to share directories and printers with windows computers through the windows sharing protocol. Once you have your system properly confirgured to communicate with a windows smb shared directory then you can mount it to any directory in your Linux file system that you wish. Once that is setup you can use a GUI or CLI utility to move and copy files.
Sign In or Register to comment.