Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to access a Windows PC on my network from Ubuntu using the command line. My goal is to retrieve a few files from that Windows box.

  • I don't have access to the Ubuntu GUI, all I can use is the command line
  • I don't have physical access to the Windows box
  • the username I have for the Windows box has Administrator rights

I have tried to use those 2 smbclient commands but both gave the same error:

smbclient //$
smbclient //$ -U WindowsUserName
Connection to //$ failed (Error NT_STATUS_CONNECTION_REFUSED)

I also tried to use this answer, but got an error too:

mount -t smbfs //$ /mnt/windows-pc -o user=WindowsUserName
mount: mount point /mnt/windows-pc does not exist
share|improve this question

closed as too localized by jokerdino Feb 26 '13 at 15:31

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Try to gain access to C:\ on a Windows box over the network looks suspicous, to say the least. First, C:\ is the last thing one would share, second, perhaps you should contact the PC owner, instead of breaking in. – mikewhatever Feb 26 '13 at 14:00
@mikewhatever I am the PC owner :-) but need to access it remotely. And the only entry point I have to the network is that ubuntu box. – assylias Feb 26 '13 at 14:02
In that case, you should be accessing //, unless you've shared C:\, which is extremerly unwise. You'll need to know the username and password for an existing account. – mikewhatever Feb 26 '13 at 14:06
@mikewhatever Thanks - but that does not seem to work (I do have a valid username and password for the Windows machine) – assylias Feb 26 '13 at 14:17
@mikewhatever Alright - I feel terrible - I was using the IP address of another device :-( Using smbclient // -U WindowsUserName worked. Thanks – assylias Feb 26 '13 at 14:32
up vote 1 down vote accepted

Check that the folder windows-pc exists in /mnt

If its doesnt create it with

mkdir /mnt/windows-pc

Your C drive will need to be shared for this to work? If you want to access it why don’t your just try telnet to it? Or FTP? Are you only trying to share drives?

Thanks William

share|improve this answer
I was using an incorrect IP - thanks for your answer. – assylias Feb 26 '13 at 14:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.